From 63a2a4ca810814cca70c435d6c729415c30da695 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Tue, 1 Mar 2016 09:32:21 +0100 Subject: [PATCH] always use current player for showing whose turn it is --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 6334c59..0acdf10 100644 --- a/bot.py +++ b/bot.py @@ -231,7 +231,7 @@ def chosen_card(bot, update): gm.leave_game(user) 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: player_name += ' (@' + player.user.username + ')' bot.sendMessage(chat_id, text="Next player: " + player_name)