A MediaWiki Bot framework
mwbot
provides a batteries-included framework for building bots
for MediaWiki wikis. The goal is to provide a high-level API on top
of the mwapi and
parsoid crates.
Configuration
Create a mwbot.toml
file with the following structure:
= "https://en.wikipedia.org/w/api.php"
= "https://en.wikipedia.org/api/rest_v1"
[]
= "Example"
= "a BotPassword"
Using Bot::from_default_config()
will look in the current directory
for mwbot.toml
before looking in the user's config directory. A
custom path can be specified by using Bot::from_config(...)
.
More to come.