There are three timers provided by eggdrop.
timer, utimer and the time bind.
Both timer and the time bind are called/check once per min, on a definable scale (IE, 2 mins, 3 mins, 50 mins). The time bind has more control over when it is first called.
utimer is a secondly timer, which again, can be called on a definable scale (1 second, 2 seconds, 50 seconds).
The time bind is used mainly in scripts that want to do somthing often, but do not need to manage the next time it is called.
timer and utimer are setup on the fly, and are ideal to call a single command, in a short time, mainly once.
Both timer and utimer use the same format
call <time> <command>
Where "call" is either timer or utimer.
To post your messages above, you could use
Code: Select all
utimer 1 [list putserv "privmsg $chan :hello all 1"]
utimer 2 [list putserv "privmsg $chan :hello all 2"]
utimer 3 [list putserv "privmsg $chan :hello all 3"]
utimer 4 [list putserv "privmsg $chan :hello all 4"]
This sends the message once per second.
However, these messages will be put in the queue like all other messages, and may not display right away.
It is far simpler and quicker to use puthelp, which is likely to display the messages just as quick as the timer method.