3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-22 03:49:29 +01:00

doc/Admin.md: improvements

This commit is contained in:
Pragmatic Software 2020-03-08 18:04:12 -07:00
parent 72807b9ea7
commit 5c0881cd35

View File

@ -548,7 +548,7 @@ Name | Description
### eventqueue
Manages the PBot event queue. Can be used to add commands that run at a future time.
Usage: `eventqueue list [filter regex] | add <relative time> <command> | remove <regex>`
Usage: `eventqueue list [filter regex] | add <relative time> <command> | remove <event>`
For example, to schedule a command to run 1 hour from now:
@ -556,15 +556,16 @@ For example, to schedule a command to run 1 hour from now:
<PBot> Command added to event queue.
<pragma-> eventqueue list
<PBot> Queued events: 1) in 1h: output #channel /say Ta-da!
<PBot> Queued events: 1) in 1h: command #channel echo Ta-da!
... 1 hour later ...
<PBot> Ta-da!
To remove all "output" events:
The `remove` command's `<event>` argument can include wildcards of the form `.*` or `.*?`. For example,
to remove all `command` events, you can simply do:
<pragma-> eventqueue remove output.*
<pragma-> eventqueue remove command .*
<PBot> Removed 1 event.
## Process management commands