Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions MainController.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ def handle_voting(bot, update):
answer, game.board.state.nominated_president.name, game.board.state.nominated_chancellor.name), uid,
callback.message.message_id)
log.info("Player %s (%d) voted %s" % (callback.from_user.first_name, uid, answer))
bot.send_message(game.cid, "%s registered a vote for President %s and Chancellor %s." % (
callback.from_user.first_name, game.board.state.nominated_president.name, game.board.state.nominated_chancellor.name))
if uid not in game.board.state.last_votes:
game.board.state.last_votes[uid] = answer
if len(game.board.state.last_votes) == len(game.player_sequence):
Expand Down