That should run the procedure display_message every 2 minutes or so i thought.
on 2 bots i have tried it does the first message fine then kills the timer.
some feedback would be appreciated.
^DooM^
Last edited by ^DooM^ on Tue Sep 16, 2003 1:39 pm, edited 1 time in total.
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
That should run the procedure display_message every 2 minutes or so i thought.
some feedback would be appreciated.
^DooM^
No, it will call the "display_message" proc once after 2 minutes and stop,
unless inside the "display_message" proc there is another timer call to itself.
# make sure we don't spawn more timers upon rehashes
if {![info exists timer_set]} {
set timer_set [timer 2 "proc_to_call"]
}
proc proc_to_call {} {
... does stuff ...
timer 2 proc_to_call ;# calls itself again in 2 minutes
}
ahh of course im thinking too much along the lines of timers in my IRC script.
Thx again strikelight
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born