Go to file
Vgr E.Barry 38b7ef81e2 Add proper error handling. Closes #151
All exceptions, if not caught, are unconditionally sent to `sys.stderr`.
We only need to use our own custom class with some modifications and we
can intercept all errors, even those in threads (which #151 was about).
The only real downside from this practice is that `cli` is not
accessible to us when the errors happen, so I used a hack to set it on
an instance variable. If anyone can find a better solution, please step
forward. For the time being, this will have to do.

If for some obscure reason this class breaks, `sys.__stderr__` holds the
original `sys.stderr`
2015-08-06 12:29:47 -04:00
oyoyo Fix issues related to undernet (and in general) 2015-07-28 22:35:47 -05:00
src Add proper error handling. Closes #151 2015-08-06 12:29:47 -04:00
.gitignore Add a proper logging feature. Closes #72. 2015-01-13 19:58:55 -05:00
.mailmap Fix @skizzerz's entry in .mailmap 2015-03-08 21:40:34 +01:00
botconfig.py.example Fix issues related to undernet (and in general) 2015-07-28 22:35:47 -05:00
CONTRIBUTING.md Rename .markdown files back to .md 2015-05-24 00:30:54 +02:00
LICENSE Convert Windows line endings to Unix 2013-09-04 11:56:00 +02:00
README.md Update README.md 2015-05-24 00:32:02 +02:00
wolfbot.py Fix imports 2015-06-15 17:36:46 +02:00

This is the Werewolf game bot for ##werewolf on freenode. It's a fork of lycanthrope, which was the last bot used in #wolfgame before it died.

We have an active community, and we'd love for you to join us!

Running your own copy

You need Python 3.2 or newer to run the bot.

Copy botconfig.py.example to botconfig.py and modify the settings as needed. You can also copy-paste individual settings from src/settings.py into botconfig.py if you want to modify them.

To start the bot, run ./wolfbot.py. You can use --verbose to log all raw IRC messages and --debug to enable some debugging features. These options should not be used in production.