Skip to content

iocalebs/patrolbot

Repository files navigation

PatrolBot

codecov

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.

A PatrolBot report posted in a Discord channel Using the PatrolBot CLI to patrol edits

Discord Bot

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.

CLI

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.

Getting started

To install and run the PatrolBot CLI:

  1. Install Go

  2. Install PatrolBot:

go install github.com/iocalebs/patrolbot@latest
  1. Initialize PatrolBot configuration:
patrolbot init
  1. Start patrolling:
patrolbot patrol

Run patrolbot --help for more information on available CLI commands.

Configuration

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 Config type documentation details on supported configuration properties
  • See ReportData type documentation for details on the data available in report templates.
  • See text/template for general information on the Go template syntax used for PatrolBot reports.

A JSON Schema is available for validation and editor autocompletion of config.yaml.

About

CLI and Discord bot for MediaWiki patrollers

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors