mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2014
Posts: 2
V
Bowl of petunias
OP Offline
Bowl of petunias
V
Joined: Aug 2014
Posts: 2
So I just started scripting a bot for twitch.tv.

I'm just starting out with simple commands where the bot just responds to a command with text. Something like:

on *:TEXT:!world:#: { msg $chan Hello, World!
}

but I want something where you can specify a variable, or something that looks like:

on *:TEXT:!hello <insert username here>:#: { msg $chan Hello, <username>
}

Not sure if this entirely makes sense, but I'm not sure how to google for this sort of thing in particular :P

Last edited by Vinceroni; 07/08/14 09:25 AM.
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Code:
on *:text:!hello ?*:#:{ msg # hello, $2- }

Joined: Aug 2014
Posts: 2
V
Bowl of petunias
OP Offline
Bowl of petunias
V
Joined: Aug 2014
Posts: 2
Thanks a bunch!


Link Copied to Clipboard