mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-25 13:29:29 +01:00
doc/Admin.md: document more things
This commit is contained in:
parent
2efa9af4b9
commit
20df163d8b
64
doc/Admin.md
64
doc/Admin.md
@ -12,6 +12,7 @@ Administrative
|
|||||||
* [adminset](#adminset)
|
* [adminset](#adminset)
|
||||||
* [adminunset](#adminunset)
|
* [adminunset](#adminunset)
|
||||||
* [Admin metadata list](#admin-metadata-list)
|
* [Admin metadata list](#admin-metadata-list)
|
||||||
|
* [Listing admins](#listing-admins)
|
||||||
* [Channel management commands](#channel-management-commands)
|
* [Channel management commands](#channel-management-commands)
|
||||||
* [join](#join)
|
* [join](#join)
|
||||||
* [part](#part)
|
* [part](#part)
|
||||||
@ -34,6 +35,14 @@ Administrative
|
|||||||
* [unban/unmute](#unbanunmute)
|
* [unban/unmute](#unbanunmute)
|
||||||
* [invite](#invite)
|
* [invite](#invite)
|
||||||
* [kick](#kick)
|
* [kick](#kick)
|
||||||
|
* [Module management commands](#module-management-commands)
|
||||||
|
* [load](#load)
|
||||||
|
* [unload](#unload)
|
||||||
|
* [Plugin management commands](#plugin-management-commands)
|
||||||
|
* [plug](#plug)
|
||||||
|
* [unplug](#unplug)
|
||||||
|
* [replug](#replug)
|
||||||
|
* [pluglist](#pluglist)
|
||||||
* [Miscellaneous commands](#miscellaneous-commands)
|
* [Miscellaneous commands](#miscellaneous-commands)
|
||||||
* [export](#export)
|
* [export](#export)
|
||||||
* [refresh](#refresh)
|
* [refresh](#refresh)
|
||||||
@ -109,6 +118,16 @@ Name | Description
|
|||||||
`loggedin` | Whether the admin is logged in or not.
|
`loggedin` | Whether the admin is logged in or not.
|
||||||
`stayloggedin` | Do not log the admin out when they part/quit.
|
`stayloggedin` | Do not log the admin out when they part/quit.
|
||||||
|
|
||||||
|
#### Listing admins
|
||||||
|
To list admins, use the `list admins` command. This is not an admin command, but
|
||||||
|
it is included here for completeness.
|
||||||
|
|
||||||
|
Usage: `list admins`
|
||||||
|
|
||||||
|
When used in a channel, it will list only the admins for that channel, plus all
|
||||||
|
global admins. When used from private message, it will list all admins from
|
||||||
|
all channels, including global admins.
|
||||||
|
|
||||||
### Channel management commands
|
### Channel management commands
|
||||||
|
|
||||||
#### join
|
#### join
|
||||||
@ -249,6 +268,51 @@ Removes a user from the channel. `<nick>` can be a comma-separated list of multi
|
|||||||
Usage from channel: `kick <nick> [reason]`
|
Usage from channel: `kick <nick> [reason]`
|
||||||
From private message: `kick <channel> <nick> [reason]`
|
From private message: `kick <channel> <nick> [reason]`
|
||||||
|
|
||||||
|
### Module management commands
|
||||||
|
|
||||||
|
Note that modules are "reloaded" each time they are executed. There is no need to `refresh` after editing a module.
|
||||||
|
|
||||||
|
#### load
|
||||||
|
This command loads a module in `$data_dir/modules/` as a PBot command. It is
|
||||||
|
equivalent to `factadd`ing a new keyword and then setting its `type` to `module`.
|
||||||
|
|
||||||
|
Usage: `load <keyword> <module>`
|
||||||
|
|
||||||
|
For example, to load `$data_dir/modules/qalc.sh` as the `qalc` command:
|
||||||
|
|
||||||
|
<pragma-> !load qalc qalc.sh
|
||||||
|
|
||||||
|
#### unload
|
||||||
|
This command unloads a module. It is equivalent to deleting the factoid keyword
|
||||||
|
the module was loaded as.
|
||||||
|
|
||||||
|
Usage: `unload <keyword>`
|
||||||
|
|
||||||
|
### Plugin management commands
|
||||||
|
|
||||||
|
#### plug
|
||||||
|
Loads a plugin into PBot.
|
||||||
|
|
||||||
|
Usage: `plug <plugin>`
|
||||||
|
|
||||||
|
#### unplug
|
||||||
|
Unloads a plugin from PBot.
|
||||||
|
|
||||||
|
Usage: `unplug <plugin>`
|
||||||
|
|
||||||
|
#### replug
|
||||||
|
Reloads a plugin into PBot. The plugin is first unloaded and then it is loaded again.
|
||||||
|
|
||||||
|
Usage: `replug <plugin>`
|
||||||
|
|
||||||
|
#### pluglist
|
||||||
|
Lists all currently loaded plugins. This isn't an admin command, but it is included here for completeness.
|
||||||
|
|
||||||
|
Usage: `pluglist`
|
||||||
|
|
||||||
|
<pragma-> !pluglist
|
||||||
|
<PBot> Loaded plugins: ActionTrigger, AntiAway, AntiKickAutoRejoin, AntiNickSpam, AntiRepeat, AntiTwitter, AutoRejoin, GoogleSearch, Quotegrabs, RemindMe, UrlTitles
|
||||||
|
|
||||||
### Miscellaneous commands
|
### Miscellaneous commands
|
||||||
|
|
||||||
These are some of the miscellaneous admin commands that have not been covered
|
These are some of the miscellaneous admin commands that have not been covered
|
||||||
|
Loading…
Reference in New Issue
Block a user