3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-29 07:19:23 +01:00

doc/Admin.md: add eventqueue command

This commit is contained in:
Pragmatic Software 2020-03-08 16:26:05 -07:00
parent 81762b8d49
commit 56d185aa1f

View File

@ -56,6 +56,8 @@
* [cmdset](#cmdset) * [cmdset](#cmdset)
* [cmdunset](#cmdunset) * [cmdunset](#cmdunset)
* [Command metadata list](#command-metadata-list) * [Command metadata list](#command-metadata-list)
* [Event queue commands](#event-queue-commands)
* [eventqueue](#eventqueue)
* [Process management commands](#process-management-commands) * [Process management commands](#process-management-commands)
* [ps](#ps) * [ps](#ps)
* [kill](#kill) * [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. `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. `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 ## Process management commands
### ps ### ps
Lists all currently running background processes. Lists all currently running background processes.