When resetting the timer, only reset it if we would be decreasing the time remaining, never increase it. Also, use > 0 checks instead of checking for debug mode to be consistent with the rest of the code, and so that the next commit works properly. The funky checks are because in debug mode (as of next commit) it will be possible to enable certain subsets of timers, and these checks are needed to prevent things from breaking when some subsets are enabled but others are not.
This is the game bot for ##werewolf on freenode. It's a continutation of lycanthrope, which has become inactive. We have an active community, and we'd love for you to join us!
Running the bot
If you wish to run your own copy of the bot, all you need is Python 3.2 or a newer version.
Copy botconfig.py.example
to botconfig.py
and modify the settings as needed.
If desired, edit settings/wolfgame.py
to modify game settings.
To start the bot, run ./wolfbot.py
. You can optionally use --debug
or
--verbose
.
Description