PatrolBot is a Discord bot and command-line tool that assists with patrolling MediaWiki sites. It was initially built for Zelda Wiki, but it is designed to be usable by any wiki in any language.
The PatrolBot Discord bot can generate reports on the state of a wiki's patrol backlog. These reports can be generated periodically or on-demand via the /report command.
| Command | Description |
|---|---|
/report <type> |
Generate a report using data from one or more MediaWiki Action API queries. |
The PatrolBot CLI (command line interface) helps patrollers work through the wiki's backlog via keyboard interface. It can be used to patrol multiple maintenance edits in rapid succession. It can also be used for patrolling revisions that are difficult or impossible to access via Special:RecentChanges, such as deleted files and old revisions hidden by link limits.
To install and run the PatrolBot CLI:
-
Install PatrolBot:
go install github.com/iocalebs/patrolbot@latest- Initialize PatrolBot configuration:
patrolbot init- Start patrolling:
patrolbot patrolRun patrolbot --help for more information on available CLI commands.
If you wish to customize PatrolBot for your own wiki's purposes, note that the bot uses config.yaml and templates to determine what reports are available, how they're worded, and what API queries they use.
- See
Configtype documentation details on supported configuration properties - See
ReportDatatype documentation for details on the data available in report templates. - See
text/templatefor general information on the Go template syntax used for PatrolBot reports.
A JSON Schema is available for validation and editor autocompletion of config.yaml.

