change time limit to 90 seconds

This commit is contained in:
Jannes Höke 2016-05-01 18:41:40 +02:00
parent 0cf7b70454
commit 1b1edf508d

12
bot.py
View file

@ -42,13 +42,13 @@ help_text = "Follow these steps:\n\n" \
"state. The greyed out cards are those you can not play at the " \ "state. The greyed out cards are those you can not play at the " \
"moment. Tap an option to execute the selected action. \n" \ "moment. Tap an option to execute the selected action. \n" \
"Players can join the game at any time. To leave a game, " \ "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" \ "Other commands (only game creator):\n" \
"/close - Close lobby\n" \ "/close - Close lobby\n" \
"/open - Open lobby\n" \ "/open - Open lobby\n\n" \
"/skip - Skip current player\n\n" \
"<b>Experimental:</b> Play in multiple groups at the same time. " \ "<b>Experimental:</b> Play in multiple groups at the same time. " \
"Press the <code>Current game: </code> button and select the " \ "Press the <code>Current game: ...</code> button and select the " \
"group you want to play a card in.\n" \ "group you want to play a card in.\n" \
"If you enjoy this bot, " \ "If you enjoy this bot, " \
"<a href=\"https://telegram.me/storebot?start=mau_mau_bot\">" \ "<a href=\"https://telegram.me/storebot?start=mau_mau_bot\">" \
@ -321,10 +321,10 @@ def skip_player(bot, update):
now = datetime.now() now = datetime.now()
delta = (now - started).seconds delta = (now - started).seconds
if delta < 120: if delta < 90:
send_async(bot, chat_id, send_async(bot, chat_id,
text="Please wait %d seconds" text="Please wait %d seconds"
% (120 - delta), % (90 - delta),
reply_to_message_id= reply_to_message_id=
update.message.message_id) update.message.message_id)
return return