How to set timer msg in BitchX
From SHellium Wiki
Contents |
How to set timer in BitchX
Usage Summary
/timer [-del <RefNum>] [-rep <Repetition>] [-ref <NewRefNum> <Delay> <Command>]
where
RefNum Reference number of an existing timer. Repetition Number of times to execute timer, default is 1 and -1 means no limit. NewRefNum Reference number for a new timer. Delay Number of seconds before the command is run. Command The command to run.
Creating a new timer
In order to create a new timer, you will need to supply a new reference number to the command. For example:
/timer -ref 1 10 /msg nick hi
will run the command /msg nick hi once after 10 seconds.
To make a timer loop indefinitely, use -rep -1, for example:
/timer -rep -1 -ref 1 10 /echo Hello World
will run the command /echo Hello World every 10 seconds indefinitely.
Listing active timers
Using /timer by itself will give you a nice listing of currently active timers by the corresponding RefNum in the first column. For example:
*** Timer Seconds Events Command *** 1 9.92 -1 echo hello world
The second column shows the number of seconds before the next execution is performed for the timer.
Deleting a timer
To delete an active timer, type, /timer -del <RefNum>. For example:
/timer -del 1