mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-25 13:29:29 +01:00
doc/Admin.md: add eventqueue command
This commit is contained in:
parent
81762b8d49
commit
56d185aa1f
17
doc/Admin.md
17
doc/Admin.md
@ -56,6 +56,8 @@
|
||||
* [cmdset](#cmdset)
|
||||
* [cmdunset](#cmdunset)
|
||||
* [Command metadata list](#command-metadata-list)
|
||||
* [Event queue commands](#event-queue-commands)
|
||||
* [eventqueue](#eventqueue)
|
||||
* [Process management commands](#process-management-commands)
|
||||
* [ps](#ps)
|
||||
* [kill](#kill)
|
||||
@ -542,6 +544,21 @@ Name | Description
|
||||
`background-process` | When set to a true value then this command will be executed as a background process. Use this for commands that can potentially take a long time to complete.
|
||||
`process-timeout` | The timeout, in seconds, before the process is automatically killed. If not set then the `processmanager.default_timeout` [registry](Registry.md) value will be used.
|
||||
|
||||
## Event queue commands
|
||||
### 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> | delete <regex>
|
||||
|
||||
For example, to schedule a command to run 10 seconds from now:
|
||||
|
||||
<pragma-> eventqueue add "10 seconds" echo Ta-da!
|
||||
<PBot> Command added to event queue.
|
||||
|
||||
10 seconds later ...
|
||||
|
||||
<PBot> Ta-da!
|
||||
|
||||
## Process management commands
|
||||
### ps
|
||||
Lists all currently running background processes.
|
||||
|
Loading…
Reference in New Issue
Block a user