Commit Graph

1143 Commits

Author SHA1 Message Date
jacob1
43676344a8 amnesiac can't turn into default role
It seems I wasn't a villager, I was actually a villager all along
2014-12-17 22:37:13 -05:00
jacob1
4bced1cf2a ping villagers in end of game list + some bugfixes 2014-12-17 21:49:39 -05:00
Ryan Schmidt
44a10b206e Merge pull request #97 from lykoss/nickcomplete
new complete_match/get_victim functions to clean up code for role commands
2014-12-17 20:29:45 -06:00
Ryan Schmidt
a960696e6e Merge pull request #95 from kernelpanic3/dyn-quit
Dynamic quit messages, take 2
2014-12-17 20:27:38 -06:00
jacob1
0a48c3ced4 end of game role list shows role swaps / is ordered mostly alphabetically
TODO: also order !stats, !pstats, others; and maybe show villagers in end of game list
2014-12-17 18:12:13 -05:00
Ominous
8eb1138a4b Remove unnecessary function calls, add DYNQUIT_DURING_GAME check for noreveal per woffle 2014-12-17 14:35:32 -05:00
jacob1
898893f72c fix killing cultist/minion, !goat, and other minor bugs 2014-12-16 22:14:18 -05:00
skizzerz
a7928399a7 Fix hunter and vengeful ghost being unable to kill a visiting harlot 2014-12-14 23:53:27 -06:00
skizzerz
baa3831ce7 Fix bot's handling of WHO replies on connect:
Some IRCds always output the servername on a WHOX query even if it
wasn't asked for. Let's ask for it now and just ignore the response. The
order of parameters in WHOX is now in the order they are returned, to
make life easier.

Also tidy up the generator a tad; if we aren't using things we're
computing then there's no need to compute it at all :)
2014-12-14 23:48:24 -06:00
Ominous
5c57c62be3 Make dynquit during game configurable, per woffle 2014-12-14 23:34:15 -05:00
jacob1
18199b166c fix multiple letter command prefixes 2014-12-14 17:42:36 -05:00
jacob1
be250fabe2 !roles/!gamestats accept partial names, new complete_match/get_victim functions to clean up code for role commands 2014-12-14 17:06:22 -05:00
jacob1
bc60357ae5 !roles/!gamestats accept partial names, new complete_match/get_victim functions to clean up code for role commands (reverted from commit c1a937f763) 2014-12-14 16:30:25 -05:00
jacob1
c1a937f763 !roles/!gamestats accept partial names, new complete_match/get_victim functions to clean up code for role commands 2014-12-14 16:23:52 -05:00
nyuszika7h
c4fb449a77 Reintroduce !mystats
It's useful for things like "!m wolf", and it's easier to do this than
hacking !pstats to support "!p wolf", which could be ambiguous if
there's a player with an account name of "wolf".
2014-12-14 15:14:28 +01:00
jacob1
60cd1ee06c allow gstats and pstats in pm during games 2014-12-14 01:30:07 -05:00
Ominous
3294c01b49 Avert convention rot per woffle 2014-12-13 19:27:09 -05:00
skizzerz
970e55e828 Fix instance where harlot A would not die if harlot A is visiting harlot B, harlot B is visiting someone, and wolves attack harlot B 2014-12-13 17:19:25 -06:00
nyuszika7h
63d4ac6e05 Don't mark services away in settings/wolfgame.py
This can be done in botconfig.py now.
2014-12-13 20:58:55 +01:00
Vgr E.Barry
3aa54cf565 Add an automatic mode toggling. 2014-12-13 14:23:56 -05:00
skizzerz
7d3a7cd140 Fix fjoining fake nicks 2014-12-13 11:30:06 -06:00
Janik Kleinhoff
5789be967e ping: more useful behaviour when noone can be pinged 2014-12-12 18:53:50 +00:00
Janik Kleinhoff
e9c8768b31 settings/wolfgame.py: fix typo (I blame Vgr) 2014-12-12 18:50:31 +00:00
Vgr E.Barry
17c59fd277 Fix a few random issues with previous commit. 2014-12-09 21:40:25 -05:00
Ryan Schmidt
ca8fe1ae86 Merge pull request #92 from Vgr255/various-adds
Huge overhaul to the system to use accounts.
2014-12-09 20:39:25 -06:00
Vgr E.Barry
6a2eec608a Huge overhaul to the system to use accounts. 2014-12-09 19:44:06 -05:00
Ominous
0f6ee5c994 Distinction between a and an 2014-12-09 00:17:33 -05:00
kernelpanic3
906e181f16 Dynamic, random quit messages 2014-12-08 23:22:32 -05:00
kernelpanic3
b8361ab6bc Dynamic, random quit messages 2014-12-08 23:22:32 -05:00
Janik Kleinhoff
6dfce11865 Player totals: sum up totals for different capitalizations 2014-12-08 21:12:40 +00:00
Janik Kleinhoff
1d06b68d24 Move database/persistence initialization into a function
This allows us to postpone init_db(). One advantage of this is that
specifying AWAY in botconfig.py won't overwrite the away list from the
DB anymore, but properly get added to (as would be expected).
2014-12-08 14:02:09 +00:00
Janik Kleinhoff
7ad48ee412 Always initialize opt-in ping list
If OPT_IN_PING is enabled via botconfig.py, OPT_IN_PING isn't set to
True at the time we set up tables as necessary, so people using !in will
make the bot run into the lack of table and crash.

We already do this with the away list even if we're going to use opt-in
ping, so this shouldn't cause any issues.
2014-12-08 13:01:12 +00:00
Janik Kleinhoff
45e59ea647 fquit: say "No more players remaining" at 0 players 2014-12-08 12:36:58 +00:00
Vgr E.Barry
f43dba4a3f Fix some specific PM commands not working. 2014-12-07 16:33:39 -05:00
Vgr E.Barry
a7fe73c355 Allow admins to invite the bot to any channel. 2014-12-07 11:01:06 -05:00
nyuszika7h
f5b9c3e612 Small refactor to log_cmd 2014-12-07 16:50:18 +01:00
nyuszika7h
7f668cbb2c Add a common logging function for fsend et al
This is just a basic logging function designed for logging (admin)
command calls. We'll have a better logging system eventually (ref:
lykoss/lykos#72).
2014-12-07 16:39:25 +01:00
Vgr E.Barry
ecc3adba1f Fixed PM commands not working. 2014-12-06 23:28:44 -05:00
jacob1
8ecef11482 fixes to lots of bugs with the bot being in an alternate channel 2014-12-06 22:33:42 -05:00
Ryan Schmidt
45f640e9c9 Fix impatient message showing up in places it shouldn't 2014-12-06 19:01:22 -06:00
Vgr E.Barry
87f74d3265 Adds ability for the bot to be in multiple channels. 2014-12-06 17:39:21 -05:00
Vgr E.Barry
3192052add Allow admins and owners tracking via account. 2014-12-06 15:43:34 -05:00
Vgr E.Barry
5cc9715eb1 Move argument parsing out of botconfig. 2014-12-06 15:03:03 -05:00
jacob1
ab1edec0cb Merge pull request #86 from Vgr255/master
Add ability to carry settings from botconfig to var.
2014-12-06 14:57:51 -05:00
Vgr E.Barry
859bc842da Add ability to carry settings from botconfig to var. 2014-12-06 14:31:49 -05:00
jacob1
1519ba3765 add var.GRAVEYARD_LOCK check in chk_win, add more checks for game ending in those 2014-12-06 14:03:31 -05:00
Ryan Schmidt
6aeb149241 Merge pull request #85 from skizzerz/fiximpatience
Impatience and pacifism totem improvements
2014-12-05 09:00:16 -06:00
nyuszika7h
a69a070c27 fpull: Show diffstat
It isn't shown by default with rebase, but it's pretty useful.
2014-12-05 11:33:48 +01:00
jacob1
fc53b905be Merge pull request #83 from lykoss/fix-cub-error
Fix KeyError in chk_win
2014-12-05 00:10:36 -05:00
jacob1
c9c5317ecf Merge pull request #82 from lykoss/refactor-fsay-fact
Refactor fsay and fact
2014-12-05 00:10:03 -05:00