mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2015
Posts: 7
R
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
R
Joined: Mar 2015
Posts: 7
Hi! I was wondering if someone could make me a question of the day script, where if you type !question, it says Question of the day: (Question goes here), and a command to set the question to go along with it, something like !qset (question), only usable by me, thanks in advance!

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
Code:
on *:text:!qset &:#: if ($nick == YOURNICK) { set %qotd $2- }
on *:text:!question:#: msg # %qotd


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Mar 2015
Posts: 7
R
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
R
Joined: Mar 2015
Posts: 7
Thanks! You're a really cool dude!
One little problem, it appears to only work if the question is one word, do you think you could maybe fix that please? Thanks!

Last edited by revolutecbx; 18/03/15 01:38 AM.
Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
Ah, yes.
My bad..

Change the & to a * instead.


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Mar 2015
Posts: 7
R
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
R
Joined: Mar 2015
Posts: 7
Sweet, thanks!


Link Copied to Clipboard