forked from Pavel_Durov/python_bot
fix time
This commit is contained in:
parent
a9803f5b04
commit
09925430cf
2
bot.py
2
bot.py
@ -71,7 +71,7 @@ async def ident(message: types.Message):
|
||||
b = session.query(user).filter(user.user_id == message.from_user.id).first()
|
||||
now_time = datetime.datetime.now()
|
||||
last_time = b.datetimes
|
||||
if (now_time - last_time).days == 0:
|
||||
if (now_time - last_time).days < 1:
|
||||
await bot.send_message(message.chat.id, f'@{message.from_user.username}, вы уже крутили пипису, ее размер {b.dick_size} см! ')
|
||||
session.close_all()
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user