forked from test/mau_mau_bot
always use current player for showing whose turn it is
This commit is contained in:
parent
f937aea051
commit
63a2a4ca81
1 changed files with 1 additions and 1 deletions
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)
|
||||||
|
|
Loading…
Reference in a new issue