timer 58 topic:reset
proc topic:reset {} {
putserv "TOPIC #Islamabad :Resynching ..."
putserv "TOPIC #Islamabad :Welcome to #islamabad the capital city of PAKISTAN \00303,15 \00315,3 (* \003 , Live Cricket Commentary is in #Cricket"
timer 58 topic:reset
}
If i am using a timer in one of my tcl and i dont kill the timer by the end of the code what are the disadvantages of it? what problems can it generate? and can I use multiple timers? if yes then please explain how.
That piece of code looks just fine. There is no need to try and terminate the timer that triggered the proc, as it is/will be terminated anyway as part of the execution.
The only thing worth noting, is that if you load this script multiple times, you'll end up with multiple timers (might be a good idea to check wether there is a timer running before starting a new one from outside the proc).
Ok does that mean the bot will part/join the channel every 2 hours?..
Your first * means your masks will match EVERY minute when the hours match, which is pretty far from what you want Here's a way to execute stuff every 2 hours with a single bind: