Janik Kleinhoff
2a07f2e5ec
fstart: don't require the admin to be joined
2014-11-29 22:37:33 +00:00
jacob1
9e83ac941c
increase likelihood of default-like rolesets, make rapid/drunkfire and amnesia only picked from a majority of the votes
2014-11-29 15:03:50 -05:00
jacob1
193ead22aa
change "roleset" to "game mode" in the code / messages
2014-11-29 13:39:55 -05:00
jacob1
788707ffb1
partial matches work with !game/!fgame, also using !fgame on an invalid roleset will no longer reset it to default
2014-11-28 22:41:03 -05:00
skizzerz
3742dcea2a
Various Bugfixes/QOL Improvements:
...
- Hag can no longer hex the same target two nights in a row
- Hag target is un-hexed if hag gets exchanged with someone
- GA now properly guards people whose names contain uppercase letters
- Make var.START_WITH_DAY mostly work, doesn't crash the bot anymore
but still needs improvements, namely messaging everyone what role
they are.
2014-11-28 21:26:12 -06:00
jacob1
0944b4a919
delete vote from var.ROLESET_VOTES when a player quits
2014-11-28 16:25:42 -05:00
jacob1
9da979c6e0
!game without args also prints valid rolesets
2014-11-28 16:25:42 -05:00
jacob1
9f7dbaa7c7
don't log loss in player stats when game is fstopped
2014-11-28 16:25:42 -05:00
jacob1
34ad806341
add player to var.DCED_PLAYERS when they quits (fixes not logging a loss in stats)
2014-11-28 16:24:56 -05:00
jacob1
d31a75c43f
log stats for templates and "lover"
2014-11-28 16:24:55 -05:00
jacob1
059fe556ec
gamestats are stored per roleset
2014-11-28 16:24:55 -05:00
jacob1
15c8335349
changes / improvements to !game
...
if > 2/5 of the players vote for a roleset it's automatically picked
picked roleset is printed out on the welcome message
!help game prints possible rolesets, also more bold
2014-11-28 16:24:55 -05:00
jacob1
d174fc4d89
rolesets are randomly picked with varying frequencies / add a !game command to make certain rolesets more likely
...
Not done, even if this is final it still needs more good rolesets to choose from
2014-11-28 16:23:56 -05:00
skizzerz
4cdc065d2f
Security Fix: Don't allow non-admins to fsay/fact to a target other than the channel itself
2014-11-27 19:08:47 -06:00
skizzerz
eb8ffb9f68
Make GA guard also go away in the event of exchange totem firing
2014-11-26 23:45:13 -06:00
jacob1
87d7b0d375
impatience totem holder is added to the start of the voters list
...
prevents them from being killed by desperation totem when they didn't actually vote
2014-11-27 00:07:41 -05:00
jacob1
addc7c9e96
don't run the reaper in debug mode (fixes errors with fake nicks)
2014-11-26 23:43:34 -05:00
jacob1
8ca611a43e
clone gets a random target if they forget to clone, also don't pm them an empty wolf list
2014-11-26 23:32:53 -05:00
jacob1
7c39906852
fix guardian angel being able to guard the same person twice in a row sometimes
2014-11-26 21:50:15 -06:00
nyuszika7h
19809f4d70
fpull: Refactor code
2014-11-26 14:23:55 +01:00
nyuszika7h
d9b89a5f95
fpull: Use rebase
2014-11-26 14:23:55 +01:00
jacob1
adca55fce5
Add back !fact aliases: !fdo and !fme
2014-11-25 13:31:52 -05:00
nyuszika7h
8ac4f2faad
Revert "!plsnofuckup !plsnoexplode"
...
This reverts commit e424520eb5
.
2014-11-25 07:42:41 +01:00
ChiyoOsaka
e424520eb5
!plsnofuckup !plsnoexplode
...
Adding 'faction' and 'fdo' as aliases to 'fact'.
!plsnoexplode
2014-11-25 02:52:35 +00:00
nyuszika7h
a03001ecf6
Make !away one-way
2014-11-22 23:34:07 +01:00
Janik Kleinhoff
3bb280a6b2
Re-add !ops alias for !admins for now
2014-11-19 19:13:40 +00:00
nyuszika7h
4e31c7d621
Remove !ops alias for !admins
...
There's no reasonable way to disable commands yet, and !ops is now
handled by AntiSpamMeta, so this is the best we can do for now.
2014-11-18 20:29:33 +01:00
nyuszika7h
868ef5c74e
Fix typo in werecrow message
2014-11-17 22:23:59 +01:00
Janik Kleinhoff
ecc17933d9
Fix missing period
2014-11-17 11:06:14 +00:00
jacob1
04c4b46a3e
Revert "fix wolf cub / traitor turning in chk_win even when end_game is false, + some other random error" 3c53ae19e8
2014-11-16 22:05:11 -05:00
nyuszika7h
54d45ba02c
Revert "fstasis: Improve non-negative integer message"
...
This reverts commit 6468cf42b7
.
The new message is confusing, as it doesn't exclude floating point
numbers, which are invalid here.
2014-11-16 10:37:17 +01:00
nyuszika7h
6468cf42b7
fstasis: Improve non-negative integer message
...
Suggested by @ecksdee.
2014-11-16 10:33:56 +01:00
nyuszika7h
93b1c47ee2
Log messages sent to fake players instead of sending them
2014-11-14 17:19:50 +01:00
nyuszika7h
8fe1cf9ef5
Fix commit dc156da
...
This reverts one of the changes made by that commit. Not PMing fake
nicks can make debugging impossible without real players.
2014-11-14 11:37:55 +01:00
jacob1
3c53ae19e8
fix wolf cub / traitor turning in chk_win even when end_game is false, + some other random error
2014-11-14 00:28:48 -05:00
jacob1
8c4281de94
!roles can print out roles from other game modes
2014-11-10 22:51:39 -05:00
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
nyuszika7h
ebc806fd25
Make !retract use the same message for !nolynch
...
The reasoning behind this is that retracting your vote not to lynch does
not necessarily mean that you will indeed lynch someone.
Also, retracting a vote not to lynch will now reset the !votes rate
limit, just like retracting a normal vote.
2014-09-03 16:36:48 +02:00
nyuszika7h
a205e7b877
Fix "cursed wolf" after cursed traitor transforms
2014-08-31 00:18:27 +02:00
Janik Kleinhoff
2fdb1d7dd0
Always display new player count when people leave during join phase.
...
Previously, leaving by quitting, parting or getting kicked would not
display the new player count. Fixes lykoss/lykos#61 .
2014-08-30 04:51:32 +02:00
jacob1
5690e91b41
fix bug where wolfchat would ignore !notice and use !simple instead
2014-08-29 20:05:31 -04:00
Janik Kleinhoff
ff8912e8a3
Revert "Avoid having the village 'mourn' a wolfteam or monster death."
...
As it turns out, this has further implications that ought to be resolved
before making this part of the bot.
2014-08-29 20:49:39 +02:00
Janik Kleinhoff
dff9ec1e52
Avoid having the village 'mourn' a wolfteam or monster death.
2014-08-29 06:58:10 +02:00
Janik Kleinhoff
818b58f569
*really* avoid people getting around !flastgame with !j
2014-08-29 05:49:32 +02:00
Janik Kleinhoff
eb1387b7c2
Add a !notice toggle separate from !simple.
...
!simple used to determine whether you were given simple instructions
*and* whether the bot NOTICEs you; now, it only controls the former and
!notice controls the latter.
2014-08-29 04:12:35 +02:00
Janik Kleinhoff
0bb5f3b75d
Fix/improve various messages a little bit.
2014-08-29 02:10:21 +02:00
Janik Kleinhoff
9c87bce157
Make command help more consistent; make sure commands are documented.
2014-08-29 00:51:53 +02:00
Yizhe Shen
7376fe54ea
Fix to allow player_stats to be case-insensitive for nicks.
2014-08-26 22:04:48 -04:00
nyuszika7h
b251a34e31
Make on_give_me_ops independent from endofwho
2014-08-27 00:23:52 +02:00
nyuszika7h
37c0c075fa
Try to gain op when bot thinks it isn't opped
2014-08-26 23:58:29 +02:00
skizzerz
3146baa983
Ensure we have enough params for fsay and fact
2014-08-24 22:03:48 -05:00