skizzerz
28ba8e2175
Fix missing import in warnings
2016-08-15 19:08:51 -05:00
skizzerz
b5571c82e0
split VG
2016-08-15 18:59:24 -05:00
Vgr E. Barry
fe4ccc3ca7
Add __all__ to src/utilities.py
2016-08-13 13:03:03 -04:00
Vgr E. Barry
6460eb6804
Define methods in IRCClient instead of using a decorator
...
Mypy doesn't like it.
2016-08-13 12:33:20 -04:00
Vgr E. Barry
273db4b553
Move local import globally
...
This used to be needed since there used to be a circular import. Guess
it's gone now!
2016-08-13 12:09:19 -04:00
Vgr E. Barry
4631d3dd1d
Set the ground up for static type checking
...
Not yet enforced, but soon, bot owners will be forced to install the
typing module.
2016-08-13 11:43:05 -04:00
Vgr E. Barry
ecec9bf4a8
Nice things are not allowed
...
Also imports should go below the module docstring.
2016-08-13 11:39:41 -04:00
Vgr E. Barry
cdaae22b2f
Tell mypy to not care about user-defined modules
2016-08-12 13:11:10 -04:00
skizzerz
f96d73a8af
Make commands that only work while playing fail silently if the person isn't playing
2016-08-11 22:36:37 -05:00
nyuszika7h
3f5e3fce78
Add syntax highlighting to the pastebin error URLs
2016-08-11 20:31:19 +02:00
skizzerz
052a2b2823
fix crow
2016-08-10 23:17:27 -05:00
skizzerz
23f27b088a
Split dullahan
...
Also fix the del_player event to be more sane, and fix some suicide bugs
in hunter/vigilante kills.
2016-08-10 18:06:37 -05:00
Vgr E.Barry
10dff4a73d
Tweak some seer's event listener
2016-08-10 18:08:41 -04:00
nyuszika7h
3f3b5bf1d7
Use ptpb.pw as pastebin with vanity IDs
2016-08-10 23:43:14 +02:00
skizzerz
35ad6c2766
Fix error in !stats introduced by RESTRICT_WOLFCHAT modifications
2016-08-10 15:29:22 -05:00
skizzerz
67f698a701
Add vigilante
2016-08-10 13:16:17 -05:00
skizzerz
ac2f28e6ed
Fix totem display glitch in maelstrom
2016-08-10 12:56:48 -05:00
skizzerz
4011707c10
Finish up RESTRICT_WOLFCHAT settings
...
All settings are now fully armed and operational.
2016-08-10 12:46:46 -05:00
skizzerz
b25f6186ec
Fix hunter autocomplete
...
Also make debugging easier by exposing src
2016-08-10 10:58:08 -05:00
skizzerz
09d90fd7e2
Revert "Revert last 3 commits - broken code"
...
This reverts commit 5e91556426
.
2016-08-10 10:40:47 -05:00
nyuszika7h
5e91556426
Revert last 3 commits - broken code
2016-08-10 16:29:46 +02:00
skizzerz
8e02e5933b
Split hunter
2016-08-09 21:52:58 -05:00
skizzerz
97c0981e2a
Split off wolf (WIP)
2016-08-09 17:10:56 -05:00
skizzerz
3855c54c35
Split villager/cultist
2016-08-09 12:44:30 -05:00
skizzerz
eb64f5dc45
Only check silence for role commands, and only after they have the right role
2016-08-09 12:44:30 -05:00
Vgr E.Barry
cd11ace8a2
Tweak reset listeners
2016-08-09 12:10:46 -04:00
nyuszika7h
6b90e52aef
Add another gif
2016-08-09 11:30:59 +02:00
skizzerz
215bc7d241
Fix myrole issue
2016-08-08 21:45:43 -05:00
Ryan Schmidt
672c01ef96
flog ALL the errors
2016-08-08 18:44:10 -07:00
skizzerz
10f94de9b3
Initial work splitting off roles
...
For now, seer and wild child are done. There are some aspects of those
roles that are still incomplete, namely:
- sorcerer and alpha wolf handling of seer/oracle/augur is still in
wolfgame.py instead of via events
- wild child does not modify !stats
2016-08-08 19:21:05 -05:00
skizzerz
957ab9a17a
Begin work splitting roles into their own files
2016-08-08 18:42:40 -05:00
jacob1
f9c4ef6b28
don't allow users not in the channel to run commands
2016-08-08 18:48:23 -04:00
Ryan Schmidt
f8d953f8ab
Don't reply on bad invites
...
DDoS vector
2016-08-08 15:29:31 -07:00
jacob1
05fbedd0e2
Fix sql syntax error when setting stasis
2016-08-06 12:39:25 -04:00
jacob1
75b386917e
Fix var.CASEMAPPING error during db upgrade
2016-08-06 12:38:59 -04:00
nyuszika7h
fe9877f471
Restore OrderedDict hack, still needed in 3.3
2016-08-05 22:07:22 +02:00
Vgr E.Barry
274a132f65
Increase hard requirement for running the bot to Python 3.3
2016-08-03 14:16:35 -04:00
Vgr E.Barry
f38735d5a1
Allow everyone dying in {rapid,drunk}fire to make them all win
...
I could have avoided the two-liner in src/wolfgame.py, but it's much
more cleaner that way, even if it's not in src/gamemodes.py
To have the code in src/gamemodes.py means we'd have duplicated code
(and thus increased the chance of random bugs, as well as maintenance
burden). And practicality beats purity.
2016-08-03 14:12:47 -04:00
Vgr E.Barry
b76b214374
Roll back the 3.2-compatibility hack with OrderedDict.keys
2016-08-03 14:10:27 -04:00
Vgr E.Barry
5b22bdd18a
Prevent winners duplication in stop_game
2016-08-03 14:09:38 -04:00
Vgr E.Barry
5db2a5d0f2
Fix local variable name clashing with global function
2016-08-03 12:07:28 -04:00
Ryan Schmidt
cd3f9fc345
Add tempban sanction ( #238 )
...
Can be either time-based or points-based. Also, made fwarn a bit smarter
at guessing what the user actually wanted to do based on the parameters
given to it. Warnings now always require acknowledgement, because that
paves the way for a future commit only beginning stasis once a warning
is acknowledged.
Warnings also split off into their own file to declutter wolfgame.py a
bit (now only 9k lines, wooooo! >_>)
Does not play nice with eir, that functionality isn't going to be in the
bot itself but rather some custom code in lykos (hooking into privmsg).
2016-08-02 17:57:09 -04:00
nyuszika7h
c3698539c1
Revert "Don't show villagergame in !help game"
...
This reverts commit 7de19cd7a6
.
2016-08-01 16:46:00 +02:00
nyuszika7h
cd13f8626d
Fix turncoat side display bug
2016-08-01 16:45:07 +02:00
nyuszika7h
7de19cd7a6
Don't show villagergame in !help game
2016-07-31 11:29:55 +02:00
Vgr E. Barry
1852bf2c44
Fiery fellows forcibly fling former friend face first, finding fire's flames fast
2016-07-29 16:22:15 -04:00
skizzerz
700ccc2629
Revert nobody wins to allow non-team wins to happen, fix messages
2016-07-28 18:22:22 -05:00
skizzerz
b8aef06ba7
Fix "nobody wins" to actually mean nobody wins
...
Before a winner of "" indicated abnormal game stop, so it wasn't logged;
add a new log parameter to account for those so we can free up "" for
games wherein nobody should win but the game should still be logged.
Also make the everyone dying condition use that.
2016-07-28 16:35:43 -05:00
Vgr E. Barry
616bcf624f
Fix invalid name
2016-07-28 16:02:57 -04:00
skizzerz
f3eef86db5
Fix casing (again)
2016-07-28 11:36:36 -05:00