This commit is contained in:
Pavel_Duron 2022-11-18 18:01:02 +10:00
parent 4907b0e524
commit 08c00b988c

6
bot.py
View File

@ -71,10 +71,10 @@ async def ident(message: types.Message):
b = session.query(user).filter(user.user_id == message.from_user.id).first() b = session.query(user).filter(user.user_id == message.from_user.id).first()
now_time = datetime.datetime.now() now_time = datetime.datetime.now()
last_time = b.datetimes last_time = b.datetimes
diff = (now_time - last_time).days diff = now_time.day - last_time.day
print()
if diff < 1: if diff <= 0:
await bot.send_message(message.chat.id, f'@{message.from_user.username}, вы уже крутили пипису, ее размер {b.dick_size} см! ') await bot.send_message(message.chat.id, f'@{message.from_user.username}, вы уже крутили пипису, ее размер {b.dick_size} см! ')
session.close_all() session.close_all()
print(diff) print(diff)