mIRC Home    About    Download    Register    News    Help

Print Thread
#248075 19/09/14 02:31 PM
S
Sakana
Sakana
S
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

#248076 19/09/14 03:09 PM
Joined: Dec 2013
Posts: 771
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 771
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

S
Sakana
Sakana
S
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.
#248080 19/09/14 06:03 PM
Joined: Dec 2013
Posts: 771
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 771
on input

S
Sakana
Sakana
S
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.

#248083 19/09/14 09:28 PM
Joined: Jan 2004
Posts: 1,330
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,330
You need to edit the trivia script.


Link Copied to Clipboard