3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-25 21:39:27 +01:00

Doc/Commands.md: update list commands with an example

This commit is contained in:
Pragmatic Software 2021-09-14 22:12:49 -07:00
parent 44e3443e7d
commit 80b64a6fb5

View File

@ -369,7 +369,10 @@ subroutine and data structures.
To list all built-in commands, use the `list commands` command. To list all built-in commands, use the `list commands` command.
Commands prefixed with a `+` require the user to have the respective `can-<command>` Commands prefixed with a `+` require the user to have the respective `can-<command>`
user-capability in order to invoke it. [user-capability](Admin.md#user-capabilities) in order to invoke it.
<pragma-> list commands
<PBot> Registered commands: +actiontrigger aka +akadelete +akalink +akaunlink +antispam +ban +ban-exempt banlist battleship +blacklist cap +chanadd +chanlist ... etc
#### Creating new built-in commands #### Creating new built-in commands
Built-in commands are created via the `register()` function of the `Commands` Built-in commands are created via the `register()` function of the `Commands`