Skip to content
MediaWiki recent changes IRC bot
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
mwikiircbot.py

README.md

mwikiircbot is an IRC bot that sits in one or more IRC channels and posts a livestream of recent changes from a MediaWiki to the channels. It uses the Python IRC bot framework.

This is mwikiircbot verson 1.1.0 (semver). The versioned API includes the usage pattern, as found in the docstring of mwikiircbot.py.

Configuration

  • Make sure the Python IRC bot framework and docopt are in the module search path.

  • If your wiki is running MediaWiki 1.22 or higher, add a new entry to your $wgRCFeeds by adding the following to your LocalSettings.php:

    $wgRCFeeds['mwikiircbot'] = array(
        'formatter' => 'IRCColourfulRCFeedFormatter',
        'uri' => 'udp://localhost:51666', # replace 'localhost' with the hostname where mwikiircbot will run
        'add_interwiki_prefix' => false,
        'omit_bots' => true,
    );
  • If your wiki is running MediaWiki 1.21 or lower:

Usage

See the docstring in mwikiircbot.py.

  • If specified, the bot will use <name> as its IRC nick. The default value is MediaWiki.
  • Upon startup, the bot will connect to the IRC server specified by <host> at port 6667, and join the <channel>s. Make sure to prefix the channels with #, and to escape the channel names when calling from a command line.
You can’t perform that action at this time.