From 9b4f4a43eaa2683e8185dc7655b5f9df465289ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Mon, 2 May 2016 12:10:35 +0200 Subject: [PATCH] on skip, add card to players hand --- bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index af1112f..380183f 100644 --- a/bot.py +++ b/bot.py @@ -22,7 +22,7 @@ logging.basicConfig( logger = logging.getLogger(__name__) gm = GameManager() -u = Updater(TOKEN) +u = Updater(token=TOKEN, workers=20) dp = u.dispatcher botan = False @@ -330,6 +330,7 @@ def skip_player(bot, update): return game.current_player.anti_cheat += 1 + game.current_player.cards.append(game.deck.draw()) game.turn() send_async(bot, chat_id, text="Next player: %s"