From 1b1edf508d9ea49f60554173aadafb3d11e3cc5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Sun, 1 May 2016 18:41:40 +0200 Subject: [PATCH] change time limit to 90 seconds --- bot.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bot.py b/bot.py index 0126448..af1112f 100644 --- a/bot.py +++ b/bot.py @@ -42,13 +42,13 @@ help_text = "Follow these steps:\n\n" \ "state. The greyed out cards are those you can not play at the " \ "moment. Tap an option to execute the selected action. \n" \ "Players can join the game at any time. To leave a game, " \ - "use /leave.\n\n" \ + "use /leave. If a player takes more than 90 seconds to play, " \ + "you can use /skip to skip that player.\n\n" \ "Other commands (only game creator):\n" \ "/close - Close lobby\n" \ - "/open - Open lobby\n" \ - "/skip - Skip current player\n\n" \ + "/open - Open lobby\n\n" \ "Experimental: Play in multiple groups at the same time. " \ - "Press the Current game: button and select the " \ + "Press the Current game: ... button and select the " \ "group you want to play a card in.\n" \ "If you enjoy this bot, " \ "" \ @@ -321,10 +321,10 @@ def skip_player(bot, update): now = datetime.now() delta = (now - started).seconds - if delta < 120: + if delta < 90: send_async(bot, chat_id, text="Please wait %d seconds" - % (120 - delta), + % (90 - delta), reply_to_message_id= update.message.message_id) return