Now !votes shows the amount of votes needed to lynch when there are no votes
This commit is contained in:
parent
ea14343ec2
commit
eb8f247be4
17
wolfgame.py
17
wolfgame.py
@ -528,17 +528,12 @@ def show_votes(cli, nick, chan, rest):
|
|||||||
return
|
return
|
||||||
elif not var.VOTES.values():
|
elif not var.VOTES.values():
|
||||||
cli.msg(chan, nick+": No votes yet.")
|
cli.msg(chan, nick+": No votes yet.")
|
||||||
return
|
else:
|
||||||
if None in [x for voter in var.VOTES.values() for x in voter]:
|
votelist = ["{0}: {1} ({2})".format(votee,
|
||||||
cli.msg(chan, (nick+": Tiebreaker conditions. Whoever "+
|
len(var.VOTES[votee]),
|
||||||
"receives the next vote will be lynched."))
|
" ".join(var.VOTES[votee]))
|
||||||
return
|
for votee in var.VOTES.keys()]
|
||||||
|
cli.msg(chan, "{0}: {1}".format(nick, ", ".join(votelist)))
|
||||||
votelist = ["{0}: {1} ({2})".format(votee,
|
|
||||||
len(var.VOTES[votee]),
|
|
||||||
" ".join(var.VOTES[votee]))
|
|
||||||
for votee in var.VOTES.keys()]
|
|
||||||
cli.msg(chan, "{0}: {1}".format(nick, ", ".join(votelist)))
|
|
||||||
|
|
||||||
pl = var.list_players()
|
pl = var.list_players()
|
||||||
avail = len(pl) - len(var.WOUNDED)
|
avail = len(pl) - len(var.WOUNDED)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user