i strongly need a tcl that restarts the bot within specified hours(or minutes). the tcl must warn channel before restart. e.g. bot is restarting. pls wait for it to come back.
bind time "0 1 * * *" bot_restart
proc bot_restart { mn h d m y } {
foreach c [channels] {
putserv "PRIVMSG $c :I'm going to restart. see you in a min"
}
restart
}