From dde30a14d7857bdae1482eb0288307c7623ee9cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Sat, 30 Apr 2016 12:20:36 +0200 Subject: [PATCH] answer async with timeout --- bot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index 8a5105e..d11d6be 100644 --- a/bot.py +++ b/bot.py @@ -47,7 +47,7 @@ help_text = "Follow these steps:\n\n" \ "/close - Close lobby\n" \ "/open - Open lobby\n" \ "/skip - Skip current player\n\n" \ - "Experimental: Play multiple games at the same time. " \ + "Experimental: Play in multiple groups at the same time. " \ "Press the Current game: button and select the " \ "group you want to play a card in.\n" \ "If you enjoy this bot, " \ @@ -66,8 +66,8 @@ def send_async(bot, *args, **kwargs): @run_async def answer_async(bot, *args, **kwargs): - # if 'timeout' not in kwargs: - # kwargs['timeout'] = 2.5 + if 'timeout' not in kwargs: + kwargs['timeout'] = 2.5 bot.answerInlineQuery(*args, **kwargs)