As part of this, adjust team and accurate stats to no longer hide any information. For team stats in particular, it was very misleading to list traitor as villager, because it gives the village the impression they have more time than they actually do (i.e. 2 wolfteam 5 vilteam actually means 3 wolfteam 4 vilteam but that is not obvious). As team stats were changed, team reveal was also changed to disregard hidden traitor, so that the two can't be correlated to pick out if traitor died (if traitor was revealed as vilteam but stats decremented wolfteam, that would guarantee that traitor died). Also commit groundwork for the stats rewrite, hidden behind an "experimental" stats type (so it is not on by default). It is still very WIP, many things do not yet work with it.
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.3 or newer to run the bot. Python 3.4 and higher is recommended.
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. You may also add or customize your own game modes by renaming gamemodes.py.example
to gamemodes.py
and using the same layout used in src/gamemodes.py
.
Note: you should never alter files under the src
folder directly (unless you are submitting a change to the code), use botconfig.py
and gamemodes.py
for related changes.
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.