If someone says the secret word they get a free soda.
to set the secret word: /msg BotName sodapass
anyone can set a secret word if one isn't set.
to reset the secret word: /msg BotName sodareset
you need to add your mask/nick as lvl 500 in the users section on the remote.ini
I was bored so i just made something up. This script is generally useless. Comments and suggestions appreciated.
make a file called soda.txt and put different brands in the file (one per line)
Coke
Pepsi
Sprite
etc...
on *:TEXT:$(%spass):#:{
/msg $chan $nick won a free soda!
/timer 1 1 /describe $chan hands $nick a $read(soda.txt)
/unset %spass
}
on *:TEXT:sodapass*:?:{
if ($2) {
if (!%spass) {
/set %spass $2
/msg $nick Secret word set to: $2
}
else { /msg $nick A secret word is already set. Go and guess it :) }
}
else { /msg $nick Whats the secret word? }
}
on 500:TEXT:sodareset:?:{
/unset %spass
/msg $nick Secret word reset!
}