From f937aea051f054fcd8aa5f78a52eac20db99bdf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Tue, 1 Mar 2016 09:26:24 +0100 Subject: [PATCH] @username and dont try to sort a bool --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index df52490..6334c59 100644 --- a/bot.py +++ b/bot.py @@ -69,7 +69,7 @@ def reply_to_query(bot, update): if game.choosing_color: choose_color(results) - else: + elif playable: playable = list(sorted(player.playable_cards())) if playable is False: @@ -233,7 +233,7 @@ def chosen_card(bot, update): player_name = player.user.first_name if player.user.username: - player_name += ' (' + player.user.username + ')' + player_name += ' (@' + player.user.username + ')' bot.sendMessage(chat_id, text="Next player: " + player_name)