Fix piper !pass breaking the bot
Piper shouldn't be able to !pass anyway, so let's just remove that entirely.
This commit is contained in:
parent
ab8a05ac1b
commit
c2fd50a33e
@ -5145,7 +5145,7 @@ def bite_cmd(cli, nick, chan, rest):
|
|||||||
chk_nightdone(cli)
|
chk_nightdone(cli)
|
||||||
|
|
||||||
@cmd("pass", chan=False, pm=True, playing=True, phases=("night",),
|
@cmd("pass", chan=False, pm=True, playing=True, phases=("night",),
|
||||||
roles=("harlot", "turncoat", "warlock", "piper", "succubus"))
|
roles=("harlot", "turncoat", "warlock", "succubus"))
|
||||||
def pass_cmd(cli, nick, chan, rest):
|
def pass_cmd(cli, nick, chan, rest):
|
||||||
"""Decline to use your special power for that night."""
|
"""Decline to use your special power for that night."""
|
||||||
nickrole = get_role(nick)
|
nickrole = get_role(nick)
|
||||||
@ -5189,12 +5189,6 @@ def pass_cmd(cli, nick, chan, rest):
|
|||||||
pm(cli, nick, messages["warlock_pass"])
|
pm(cli, nick, messages["warlock_pass"])
|
||||||
relay_wolfchat_command(cli, nick, messages["warlock_pass_wolfchat"].format(nick), ("warlock",))
|
relay_wolfchat_command(cli, nick, messages["warlock_pass_wolfchat"].format(nick), ("warlock",))
|
||||||
var.PASSED.add(nick)
|
var.PASSED.add(nick)
|
||||||
elif nickrole == "piper":
|
|
||||||
if nick in var.CHARMERS:
|
|
||||||
pm(cli, nick, messages["already_charmed"])
|
|
||||||
return
|
|
||||||
pm(cli, nick, )
|
|
||||||
var.PASSED.add(nick)
|
|
||||||
|
|
||||||
debuglog("{0} ({1}) PASS".format(nick, get_role(nick)))
|
debuglog("{0} ({1}) PASS".format(nick, get_role(nick)))
|
||||||
chk_nightdone(cli)
|
chk_nightdone(cli)
|
||||||
|
Loading…
Reference in New Issue
Block a user