2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
.. _plugin-scheduler:
|
|
|
|
|
|
|
|
The Scheduler plugin
|
|
|
|
====================
|
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-scheduler-repeat:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
scheduler repeat <name> <seconds> <command>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
Schedules the command *<command>* to run every *<seconds>* seconds,
|
|
|
|
starting now (i.e., the command runs now, and every *<seconds>* seconds
|
|
|
|
thereafter). *<name>* is a name by which the command can be
|
|
|
|
unscheduled.
|
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-scheduler-list:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
scheduler list
|
|
|
|
^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
Lists the currently scheduled events.
|
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-scheduler-add:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
scheduler add <seconds> <command>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
Schedules the command string *<command>* to run *<seconds>* seconds in the
|
|
|
|
future. For example, 'scheduler add [seconds 30m] "echo [cpu]"' will
|
|
|
|
schedule the command "cpu" to be sent to the channel the schedule add
|
|
|
|
command was given in (with no prefixed nick, a consequence of using
|
|
|
|
echo). Do pay attention to the quotes in that example.
|
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-scheduler-remove:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
scheduler remove <id>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
Removes the event scheduled with id *<id>* from the schedule.
|
|
|
|
|