Commit Graph

499 Commits

Author SHA1 Message Date
jacob1
c514296a80 save !fdeny / !fallow in database, also allow commands to be added / removed individually 2014-11-03 13:37:24 -05:00
nyuszika7h
aee5bce1b0 allow_deny: Fix stale references to 'allow' 2014-11-03 18:36:28 +01:00
nyuszika7h
bb6e3e9dfe fallow, fdeny: Add temporary warning about persistence
Or rather, the lack of it.
2014-11-03 14:25:26 +01:00
nyuszika7h
06ae51d29f allow_deny: Improve assertion code 2014-11-03 14:15:30 +01:00
nyuszika7h
5e9f1031ae Fix fallow/fdeny 2014-11-03 14:11:11 +01:00
skizzerz
71fd4acb8a Fix how !stats interacts with amensiac 2014-11-02 21:36:39 -06:00
jacob1
54af1fbd2d fix !fallow message 2014-11-02 16:27:41 -05:00
jacob1
815b38a7e9 New commands: !fdeny and !fallow 2014-11-02 15:58:14 -05:00
nyuszika7h
59c589f3e1 !fwait: Code cleanup 2014-10-26 10:10:02 +01:00
Benjamin Donald-Wilson
897095c4ff Fix small typo in GA message 2014-10-26 14:41:49 +11:00
Janik Kleinhoff
78778b9b16 fix typo 2014-10-26 02:22:58 +01:00
Janik Kleinhoff
1ec60fe99b !fwait: improve message a little 2014-10-26 02:19:39 +01:00
Janik Kleinhoff
5965848bcf !fwait: Allow arbitrary wait durations
We indeed don't have all day, but people with access to fwait should
know as much already anyway. Additionally, this interfered with undoing
a long fwait; !fwait 9999 was possible, !fwait -9999 was not.
2014-10-26 02:10:52 +01:00
Janik Kleinhoff
472d71811a myrole: Only tell shamans their totem at night 2014-09-28 08:10:51 +02:00
Janik Kleinhoff
f3d7e569ae frole: Adjust behaviour for templates; allow specifying totem
The syntax to give 'foo' the additional 'bar' template is now
!frole foo +bar
or, in the case of templates like gunner that can take an argument,
!frole foo +gunner = 9001
Removing a template uses - instead:
!frole foo -bar

The new "role = arg" syntax also applies for shamans and crazed shamans:
!frole foo shaman = impatience
A random totem is selected as usual, rather than the bot crashing, if no
argument is given.
2014-09-28 08:05:21 +02:00
Janik Kleinhoff
7fa8e459f7 Fix "at some poisonous berries" typo 2014-09-28 04:37:40 +02:00
Janik Kleinhoff
c1c742db23 Avoid printing role when it's "person", without a syntax error 2014-09-28 01:20:00 +02:00
nyuszika7h
ffa7f7c58c leave & fleave: Don't say role if it's "person"
And other minor improvements.
2014-09-28 00:55:36 +02:00
nyuszika7h
11b508d40b fstasis: Add missing return 2014-09-27 12:49:03 +02:00
nyuszika7h
2a306fcc7c fstasis: Improve messages 2014-09-27 12:46:07 +02:00
jacob1
f1f166f052 fix fstasis not handling hostmasks with capital letters properly 2014-09-27 00:53:56 -04:00
Romtam
b7fac7be4c Added missing dot 2014-09-26 19:35:43 +07:00
Janik Kleinhoff
92a8c5bd60 Make fjoin message for fake nicks consistent with others 2014-09-25 23:30:58 +02:00
jacob1
dc156da64c don't display the join message / pm fake nicks when in debug mode 2014-09-25 16:37:05 -04:00
jacob1
82b53f92d9 village can't abstain on day one 2014-09-25 16:00:06 -04:00
nyuszika7h
6dc4f4859f Fix the bot telling you you haven't voted after retracting abstain
Reported by @Vgr255 on IRC.
2014-09-20 11:53:11 +02:00
Janik Kleinhoff
b2e0a6b1a3 Add quieting code again, but disabled by default
This reverts commit 5e4bb1ed5d and puts
the relevant quiet-related code in a conditional instead, depending on a
newly-added var.QUIET_DEAD_PLAYERS setting.
2014-09-18 16:12:17 +02:00
nyuszika7h
5e4bb1ed5d Remove quieting
Per discussion in ##werewolf-ops, nick changes are easier to notice than
PM logs which could be faked, and we can ban repeat offenders if needed
anyway.
2014-09-18 15:48:43 +02:00
Janik Kleinhoff
0669799f1e is_fake_nick: only all-numeric nicks are fake
The previous check had quite a few issues, e.g. on UID nicks.
2014-09-17 22:00:24 +02:00
Janik Kleinhoff
62b9b1627d Fix crash with idle warnings and nick changes
Sorry for breaking it. :s
2014-09-17 21:57:39 +02:00
Janik Kleinhoff
bae19598cb !myrole: remind shamans of their totem
This is especially useful if the shaman did not see the original message
informing them of their role (e.g. due to connection issues).
2014-09-17 20:48:04 +02:00
Janik Kleinhoff
4de6899209 !myrole: remind lovers of their love 2014-09-17 20:31:23 +02:00
xnrand
60c0a136f5 bold in wolf gun death messages 2014-09-15 01:03:55 +02:00
Janik Kleinhoff
b8c2f6d841 Warn idlers a second time in PM 2014-09-12 14:59:03 +02:00
skizzerz
8d1a527724 Fix autolose not happening if someone quits 2014-09-09 20:47:11 -05:00
skizzerz
3a6280ad8c Add settings to disable abstain and also limit it
By default, abstain is enabled and limited to being used once per
game. Both of these can be changed in settings.py.
2014-09-08 22:38:57 -05:00
nyuszika7h
eeb812c40e !start: Fix pluralization 2014-09-07 11:53:47 +02:00
nyuszika7h
a2201c5061 Fix mad scientist message 2014-09-06 22:37:04 +02:00
jacob1
e84e786d39 fix players not being removed from var.KILLS when they die, and revert f8574e1892 2014-09-05 19:44:46 -04:00
jacob1
250e7d7462 fix error when exchange totem happens and wolves are angry 2014-09-05 19:43:26 -04:00
jacob1
457372fa3e fix lykos devoicing people that weren't in the game sometimes 2014-09-05 19:42:35 -04:00
jacob1
b43140d362 fix error when using !retract after !abstain 2014-09-05 19:41:18 -04:00
Janik Kleinhoff
6af09159a2 Allow !fjoin to bypass stasis
Allow admins to fjoin people who are currently stasised without removing
their stasis entirely. Stasis is unaffected by this on its own, although
note that a game being played will still normally reduce the stasis
penalty for now, even if the stasised player actually played in the game
due to being fjoined.
2014-09-04 13:08:21 +02:00
Janik Kleinhoff
41b8740eb1 Make stasis persist through restarts by saving it in the DB
Fixes lykoss/lykos#28.
2014-09-04 01:45:54 +02:00
Janik Kleinhoff
9b9f35487b Put !fquit message on a single line 2014-09-04 01:08:09 +02:00
Janik Kleinhoff
59c9d5df14 Don't reveal traitor when they're !fquit
This is consistent with them otherwise leaving the game by abnormal
means (idling out, parting, quitting, getting kicked).
2014-09-04 01:08:09 +02:00
jacob1
1933247a56 fix people not getting devoiced when changing to guest/away nick 2014-09-03 12:33:28 -04:00
jacob1
9bed1186c0 changing to certain nicks in game counts as quitting (fixes some /ns regain / idler issues) 2014-09-03 11:55:21 -04:00
jacob1
8293dd3850 kill all the idlers at once so they all get stasis 2014-09-03 11:55:21 -04:00
nyuszika7h
f8574e1892 Fix error when wolves' target dies before sunrise 2014-09-03 16:52:08 +02:00