This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

hmmmm, timers

Old posts that have not been replied to for several years.
Locked
User avatar
droolin
Halfop
Posts: 64
Joined: Thu Jul 24, 2003 9:07 pm
Contact:

hmmmm, timers

Post by droolin »

I need to add a timer to execute a command every 5 minutes. Looking at the manual and a tutorial I found, I think the code would appear as such:

Code: Select all

timer 5 Check_For_OnJoin_PMS
proc Check_For_OnJoin_PMS {} {
    puthelp "PRIVMSG secureserv :checkchan #(channel name here)"
}
My questions are this. Lol, is this the right syntex???? And will it execute every 5 minutes???

thank you for your time, most appriceated.

droolin
s
spock
Master
Posts: 319
Joined: Thu Dec 12, 2002 8:40 pm

Post by spock »

your code will privmsg once after 5 minutes then do no more

try

Code: Select all

timer 5 Check_For_OnJoin_PMS 
proc Check_For_OnJoin_PMS {} { 
    puthelp "PRIVMSG secureserv :checkchan #(channel name here)"
    timer 5 Check_For_OnJoin_PMS 
} 
or use bind time
photon?
User avatar
droolin
Halfop
Posts: 64
Joined: Thu Jul 24, 2003 9:07 pm
Contact:

thank you

Post by droolin »

I wasnt sure about that. Thank you very much

droolin
Locked