actually check for waiting time, not always 90sex

This commit is contained in:
Jannes Höke 2016-05-08 17:17:51 +02:00
parent 4c1a5537eb
commit d85934b789

5
bot.py
View file

@ -348,10 +348,11 @@ def skip_player(bot, update):
now = datetime.now() now = datetime.now()
delta = (now - started).seconds delta = (now - started).seconds
if delta < 90: if delta < game.current_player.waiting_time:
send_async(bot, chat_id, send_async(bot, chat_id,
text="Please wait %d seconds" text="Please wait %d seconds"
% (90 - delta), % (game.current_player.waiting_time -
delta),
reply_to_message_id= reply_to_message_id=
update.message.message_id) update.message.message_id)
return return