Wikibugs

wikibugs is an IRC bot that idles in the #wikimedia-dev development channel (and others) on the freenode IRC network.

Functions
The bot polls the phabricator API and posts changes to tasks into various IRC channels.


 * wikibugs.py: Runs as  and polls the API, and inserts all task events into a redis queue
 * redis2irc.py: Runs as, reads from the redis-queue, and notifies various channels.
 * redis2stdout.py is useful when debugging if you don't want to have to connect to IRC all the time.

Source
The source for wikibugs can be found in Git: https://phabricator.wikimedia.org/diffusion/TWBT/ (incl. the channel list). (github mirror)

Deploying changes
Everything is deployed via fabric. You need to run these commands from your own computer. Fab then logs in to tool labs and runs commands for you.

If your change just updates the channel list:
 * May take up to 60 seconds to notice the change.
 * Jenkins should do this automatically after the change is merged.
 * Jenkins should do this automatically after the change is merged.

If you need to restart the phabricator listener:
 * Note that it will lose its position and drop any events that occur while it is not running.
 * Note that it will lose its position and drop any events that occur while it is not running.

If you have to restart the IRC bot (you really shouldn't)

Each action should cause a message to be !log'd in #wikimedia-labs.

If jobs are not running, you can start both with

Muting wikibugs
There is currently no IRC-based method for this. Maintainers can kill the phabricator listener via The job can be restarted via fabric as described above.

Configuring channels
Update channels.yaml with the channel name and project name. Project names can be regular expressions and are case insensitive.

Help
Find any of the following friendly people on IRC and they should be able to help you out:
 * legoktm
 * valhallasw

The list of people who have access to the bot can be found here.