test
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pavel_Duron 2022-11-18 16:56:41 +10:00
parent d81f950f3f
commit 7a917d2794

3
bot.py
View File

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