Try to make bot send message to channel at specified time of the hour, EVERY hour. I have what I THOUGHT to send message at 10 minutes past every hour:
bind time - "*10***" texttime
proc texttime {n h handle ch te} {
global text channel
foreach chan $channel {
putserv "PRIVMSG $chan :$text"
}
}
(Should it be "*10***" or "* 10 * * *" ??)
What I have now works PERFECT at 10 minutes after every hour till it reaches 10 a.m. Then it starts doing it every minute till 11 a.m and then goes back to once every 10 minutes after the hour. I'm sure it's something I have written incorrect, any suggestions?
<font size=-1>[ This Message was edited by: DrTongue on 2002-04-02 16:51 ]</font>
I was looking at my earlier reply and I misinformed you. Sorry. In my example I got the Hour and Minute fields mixed up. The syntax for bind time is as follows:
bind time <flags> "<minutes> <hours> <day> <month> <year>" proc
therefore to get it going every 10 minutes I'd try:
bind time - "*0 * * * *" proc
signifies that it should execute whenever the minute counter has a zero in it. I don't know if that works, but the above syntax is correct now anyhow.