mIRC Home    About    Download    Register    News    Help

Print Thread
#245578 28/04/14 11:56 AM
Joined: Mar 2014
Posts: 215
J
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 215
I am trying to make a jokes script that will say jokes in the chat every 10 minutes. I got the timer going but it just says the same joke (i had joke1, joke2, and joke3)
Code:
on *:TEXT:!jokes:#:{
  { msg $chan jokes will now play every 10 minutes. To stop say !jokes off }
  { .timerJokess 0 600 msg $chan $read(jokes.txt) }
}
on *:TEXT:!jokes off:#:{
  { msg $chan jokes are no longer playing }
  { .timerJokess off }
}

Please help.


#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball
Joined: Apr 2014
Posts: 191
B
Vogon poet
Offline
Vogon poet
B
Joined: Apr 2014
Posts: 191
Use $!read(jokes.txt), not $read(jokes.txt)
You have to put ! between $(!)read

Use /timerjokess to see the difference.


Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
Every line does not need to be (should not be) within a block of { }

Joined: Mar 2014
Posts: 215
J
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 215
removed them. Thanks for your help blessing smile


#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball

Link Copied to Clipboard