Hi,i would like to knw how to make bot chnage topic everyday by itself maybe after 12am.it chnage topic.. i would like to make bot put its standart description + server Uptime
ex:day1 bot change topic to ->welcome to channel (server Uptime 300 days)
ex:day2 bot change topic to ->welcome to channel (server uptime 301 days)
the reason is i wanna try to make server uptime counter in topic.. hope somebody can help me
# Set channel here
set chan "#g"
bind time - "12 00 * * *" proc:spit
proc spit {} {
global chan
if {[llength $chan] < "1"} { putlog "Didn't set channel."; return }
if {[catch {exec uptime} uptime]} { set uptime "Uptime is unavailable." }
putmsg $chan "Welcome to $chan. Server uptime $uptime"
}