and anyone tell me how to make a fortune cookie script?
like if u say !cookie,if randomly pick a message from the script setup and appear it on the channel,any idea?
on *:TEXT:!cookie:#yourchannelnamehere:{ msg $chan $read(cookies.txt) $+ . }
note: the $+ . is incase the line in the cookies.txt file is blank
Put a cookie text on each line of the cookies.txt file, ie......
You well have a good day today
You well be lucky today
Tomorrow well be rainy
note: the lines may include identifiers to be evaluated at the time ie..
You well have a good day today
You well find happy times ahead $nick $+ , just keep in this channel
You well be lucky today
Tomorrow well be rainy
A slightly better bot is this
on *:TEXT:!cookie:#yourchannelnamehere:{
if (%djc.cookie.pause != $true) {
set -u1 %djc.cookie.pause $true
msg $chan $read(cookies.txt) $+ .
}
}
It simply makes the bot only reply once per second, so i cant get flooded by people doing !cookie
All above text (c) Copyright DaveC 2005, no part maybe reproduced without my express writtin permission.
PS: I give that permission <snicker snicker>