This commit is contained in:
Pavel_Duron 2022-11-18 14:38:18 +10:00
parent a9803f5b04
commit 09925430cf

2
bot.py
View File

@ -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: