always use current player for showing whose turn it is
This commit is contained in:
2
bot.py
2
bot.py
@ -231,7 +231,7 @@ def chosen_card(bot, update):
|
|||||||
gm.leave_game(user)
|
gm.leave_game(user)
|
||||||
bot.sendMessage(chat_id, text="Player won!")
|
bot.sendMessage(chat_id, text="Player won!")
|
||||||
|
|
||||||
player_name = player.user.first_name
|
player_name = game.current_player.user.first_name
|
||||||
if player.user.username:
|
if player.user.username:
|
||||||
player_name += ' (@' + player.user.username + ')'
|
player_name += ' (@' + player.user.username + ')'
|
||||||
bot.sendMessage(chat_id, text="Next player: " + player_name)
|
bot.sendMessage(chat_id, text="Next player: " + player_name)
|
||||||
|
Reference in New Issue
Block a user