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.

Timer

Old posts that have not been replied to for several years.
Locked
l
lawina

Timer

Post by lawina »

ok i am a noob with scripting so i decided to ask for help in here > i found this script >

####################################

set channel "#blah"
set text1 "check out our website at http://blahblahblah"

bind time - "00 * * * *" text1time

proc text1time {n h handle ch te} {
global text1 channel
foreach chan $channel {
putserv "PRIVMSG $chan :$text1"
}
}

####################################

Now it's like messaging the channel every hour or so, but i want it message the channel ever minute or 40 seconds, anyone who could help me with this? Appriciated!

-lawina-
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Simply change the time mask used from

Code: Select all

bind time - "00 * * * *" text1time 
to

Code: Select all

bind time - "*" text1time 
Note, the time bind is a once per min thing, and doesn't operate on seconds.

The only way to do that is to work with utimers.

Se tcl-commands.doc for the usage of them.
Locked