Make !vote/!v work as an alias for !game in the join phase
This commit is contained in:
parent
431ebe86d3
commit
adb039e83d
@ -3283,8 +3283,8 @@ def no_lynch(cli, nick, chan, rest):
|
|||||||
chk_decision(cli)
|
chk_decision(cli)
|
||||||
return
|
return
|
||||||
|
|
||||||
@cmd("lynch", "vote", "v", game=True, playing=True, pm=True)
|
@cmd("lynch", game=True, playing=True, pm=True)
|
||||||
def vote(cli, nick, chan, rest):
|
def lynch(cli, nick, chan, rest):
|
||||||
"""Use this to vote for a candidate to be lynched."""
|
"""Use this to vote for a candidate to be lynched."""
|
||||||
if not rest:
|
if not rest:
|
||||||
show_votes(cli, nick, chan, rest)
|
show_votes(cli, nick, chan, rest)
|
||||||
@ -6490,6 +6490,17 @@ def game_help(args=''):
|
|||||||
else gamemode for gamemode in var.GAME_MODES.keys() if gamemode != "roles"])
|
else gamemode for gamemode in var.GAME_MODES.keys() if gamemode != "roles"])
|
||||||
game.__doc__ = game_help
|
game.__doc__ = game_help
|
||||||
|
|
||||||
|
|
||||||
|
@cmd("vote", "v", raw_nick=True, pm=True)
|
||||||
|
def vote(cli, raw_nick, chan, rest):
|
||||||
|
nick = parse_nick(raw_nick)[0]
|
||||||
|
|
||||||
|
if var.PHASE == "join" and chan != nick:
|
||||||
|
return game(cli, raw_nick, chan, rest)
|
||||||
|
else:
|
||||||
|
return lynch(cli, nick, chan, rest)
|
||||||
|
|
||||||
|
|
||||||
@cmd("fpull", admin_only=True, pm=True)
|
@cmd("fpull", admin_only=True, pm=True)
|
||||||
def fpull(cli, nick, chan, rest):
|
def fpull(cli, nick, chan, rest):
|
||||||
"""Pulls from the repository to update the bot."""
|
"""Pulls from the repository to update the bot."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user