Commit Graph

2052 Commits

Author SHA1 Message Date
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
nyuszika7h
965e0481ec Remove redundant ALPHA_WOLF_NIGHTS definition for random
Alpha's target now turns immediately, this variable was not being used
by the code anymore.
2016-07-28 10:39:43 +02:00
skizzerz
598c994e43 Allow Iciloo to successfully !vote alpha 2016-07-27 23:22:14 -05:00
skizzerz
e95fb49a70 Really fix pre_restart_state for real for real (once more, with feeling) 2016-07-27 23:09:46 -05:00
skizzerz
3fcfa83c43 Really fix pre_restart_state (for real this time) 2016-07-27 23:07:29 -05:00
skizzerz
45930c3ffd <insert commit message here> 2016-07-27 23:05:14 -05:00
skizzerz
e6b6383b45 rejigger fdie too 2016-07-27 23:01:28 -05:00
Vgr E. Barry
ebaca56c92 Improve string formatting 2016-07-27 23:49:55 -04:00
Vgr E. Barry
0cd5c9dd7c Fix syntax error 2016-07-27 23:48:00 -04:00
skizzerz
218d01088d wat 2016-07-27 22:47:26 -05:00
skizzerz
e47a348f22 Remove old db calls 2016-07-27 22:45:43 -05:00
skizzerz
0c0268e1b7 Report overall winrate 2016-07-27 21:37:37 -05:00
skizzerz
1b7b2f6799 Make discrimination based on case ilegel
All hostmask and account comparisons are now case-insensitive (nicks
still aren't, related to #217 -- changing nick sensitivity would break
everything in numerous places).

Also, refactor some things into other files where it makes sense to do
so, because putting unrelated things into the same commit is fun.
2016-07-27 17:03:34 -05:00
Vgr E. Barry
1e21445e43 Fix typo 2016-07-27 15:55:12 -04:00
skizzerz
862111be9e I'm the best at space 2016-07-27 11:45:45 -05:00
skizzerz
b5ae34804d Make 0 point warnings no-op 2016-07-27 11:42:22 -05:00
Ryan Schmidt
22aa7af5c6 Merge pull request #235 - Schema upgrade by skizzerz
Fix FK deferrable status, ensure that FKs are always enforced in the
bot, and redo how fool wins are stored/tracked. Drop unneded table.
2016-07-27 12:38:23 -04:00
nyuszika7h
0caaba9152 Make !refreshdb reply with "Done." 2016-07-26 23:26:39 +02:00
nyuszika7h
73f99b4ae4 Use separate warning for /quit than for /part 2016-07-26 22:32:57 +02:00
jacob1
dc1b1e7f6a add back DISABLED_GAMEMODES
can be used by bot operators to disable & hide a gamemode entirely
2016-07-25 00:06:38 -04:00
skizzerz
265a1cc442 Revert "Clearly indicate not enough players for game mode"
This reverts commit aedf39efce.
See comment in github on that commit for reasoning.
2016-07-22 21:45:15 -05:00
jacob1
89b38794e1 fix !swap, blame nyuszika7h
don't remove all the returns in the sanity checks
2016-07-22 20:36:20 -04:00
jacob1
bc8e7e6da1 fix !revealroles working during games 2016-07-22 20:26:37 -04:00
nyuszika7h
aedf39efce Clearly indicate not enough players for game mode 2016-07-22 23:58:26 +02:00
nyuszika7h
db519a6827 Notice players instead of silence when already voted game mode
This accidentally ended up partially being in an earlier commit, but now
here it is...
2016-07-22 10:36:44 +02:00
skizzerz
b556e74fd8 Revert "Fix use of chan where not defined"
This reverts commit 4301ba4c48.
2016-07-21 22:03:00 -05:00
skizzerz
e14c3f1d9c Make alpha bite turn target immediately
RIP long bitten messages, you shall be missed :(
2016-07-21 18:20:29 -05:00
skizzerz
07e3018d06 Fix 4301ba4 properly 2016-07-21 17:05:38 -05:00
nyuszika7h
4301ba4c48 Fix use of chan where not defined 2016-07-21 23:56:44 +02:00
nyuszika7h
7c7facdd7d Fix commit e04410e
I don't know when I wrote that code...
2016-07-21 23:22:46 +02:00
nyuszika7h
4383a64c08 Removed now-redundant message 2016-07-21 23:18:13 +02:00