Browse Source

Now !votes shows the amount of votes needed to lynch when there are no votes

master
jcao219 14 years ago
parent
commit
caf30c90a1
  1. 7
      wolfgame.py

7
wolfgame.py

@ -528,12 +528,7 @@ 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]:
cli.msg(chan, (nick+": Tiebreaker conditions. Whoever "+
"receives the next vote will be lynched."))
return
votelist = ["{0}: {1} ({2})".format(votee, votelist = ["{0}: {1} ({2})".format(votee,
len(var.VOTES[votee]), len(var.VOTES[votee]),
" ".join(var.VOTES[votee])) " ".join(var.VOTES[votee]))

Loading…
Cancel
Save