From 317b4662d1b425c07afce7261573e31de9f9167f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Wed, 20 Apr 2016 01:32:02 +0200 Subject: [PATCH] add newline in help text --- bot.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index eedcf00..4ea179e 100644 --- a/bot.py +++ b/bot.py @@ -38,7 +38,7 @@ help_text = "Follow these steps:\n\n" \ "messages. You will see your cards (some greyed out), any extra " \ "options like drawing, and a ? to see the current game " \ "state. The greyed out cards are those you can not play at the " \ - "moment." \ + "moment.\n" \ "Tap an option to execute the selected action. \n\n" \ "Players can join the game at any time, though you currently " \ "can not play more than one game at a time. To leave a game, " \ @@ -232,10 +232,13 @@ def reply_to_query(bot, update): add_call_bluff(results) playable = player.playable_cards() + added_ids = list() for card in sorted(player.cards): add_play_card(game, card, results, - can_play=(card in playable)) + can_play=(card in playable and + str(card) not in added_ids)) + added_ids.append(str(card)) if False or game.choosing_color: add_other_cards(playable, player, results, game)