Hi, I want my bot to say a message to the bot every x seconds. Which script will do that? I tried a search but to no avail. Don't need a DCC command, just a basic script that repeats text on a specified channel. thanks.
## interval between each message in seconds
set intsecs "2700"
## message to send
set chanmsg "\00304,12If you are receiving spam from other people in private message, ignore them\003."
timer $intsecs [list message:tochan]
proc message:tochan {} {
foreach chan [channels] {
putserv "PRIVMSG $chan :$::chanmsg"
}
timer $::intsecs [list message:tochan]
}
the bot says the message but the bot will say it to the channel at random intervals, 3 minutes, 6 miinutes, it totally ignores the interval I set at the top. I only had the script up for an hour or so.
I changed timer to utime, restarted the bot, it still says stuff to the channel at different times, I put 2700 seconds but the bot says stuff in 24 minutes, 21 minutes. The first time, it says in 45 minutes but afterwards, it ignores the 2700 I set in the file.