mIRC Home    About    Download    Register    News    Help

Print Thread
#248075 19/09/14 02:31 PM
Joined: Sep 2014
Posts: 259
S
Sakana Offline OP
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Sep 2014
Posts: 259
Hi, I'm running a trivia bot for twitch streaming, and I would like it to automatically open picture files on certain questions. How can this be accomplished?

Any help is greatly appreciated

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
You could use the /run command.
/run path\image.png

It's not beautiful, but I'd expect it to be some long code if you wanna manipulate the windows viewer somehow


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Sep 2014
Posts: 259
S
Sakana Offline OP
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Sep 2014
Posts: 259
Thanks, it works great now! There's just one last thing I can't figure out:

How do you get a bot to trigger on its own text? This appears to not work. I suppose I could have yet another client open to fix that, but that seems like an extremely clunky solution :P

Last edited by Sakana; 19/09/14 05:52 PM.
Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
on input


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Sep 2014
Posts: 259
S
Sakana Offline OP
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Sep 2014
Posts: 259
First I tried the crude method of using 2 clients, and just repeating this for every question:

on *:text:Trivia question:#: if ($nick = BotName ) { /run C:\Image.jpg }

It works fine when I type in the question manually, but nothing happens when the bot is running and asks the same question (Tat's trivia script). Why is this? frown

I also don't see how the above code can be transformed into ON INPUT.

Joined: Jan 2004
Posts: 1,352
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,352
You need to edit the trivia script.


Link Copied to Clipboard