From d85934b789958c38630479aceb6f6b202feb26c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Sun, 8 May 2016 17:17:51 +0200 Subject: [PATCH] actually check for waiting time, not always 90sex --- bot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 55bd322..6a91072 100644 --- a/bot.py +++ b/bot.py @@ -348,10 +348,11 @@ def skip_player(bot, update): now = datetime.now() delta = (now - started).seconds - if delta < 90: + if delta < game.current_player.waiting_time: send_async(bot, chat_id, text="Please wait %d seconds" - % (90 - delta), + % (game.current_player.waiting_time - + delta), reply_to_message_id= update.message.message_id) return