actually check for waiting time, not always 90sex
This commit is contained in:
parent
4c1a5537eb
commit
d85934b789
1 changed files with 3 additions and 2 deletions
5
bot.py
5
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
|
||||
|
|
Loading…
Reference in a new issue