Manual:Wikibot


 * Not to be confused with Manual:MediaWiki-Recent Changes-IRCBot

Wikibot is a PHP-based MediaWiki bot framework. It is based upon w:User:ClueBot/Source, but is designed to be more configurable and flexible.

Configuration
The bot can be configured using the file wikibot.config.php. For instance, if you want to configure a bot username of, a bot password of  , and to have it edit testwiki.org, you might put the following configuration settings in wikibot.config.php:

If there is any conflict between a wildcarded setting and a more specific setting, the more specific setting will prevail. E.g., suppose you have the following: In this example, the TestBot setting would override the less specific AwesomeBot setting for purposes of commands such as this:
 * The first bracket contains the name of the configuration setting.
 * The second bracket contains the name of the bot or the wildcard "*" to apply the setting to all bots.
 * The third bracket contains the wiki name or the wildcard "*" to apply the setting to all wikis.

Sample bot
Here is a sample bot that uses this framework to edit the page "Sandbox" on testwiki.org: