forked from Pavel_Durov/python_bot
test
This commit is contained in:
parent
d81f950f3f
commit
7a917d2794
3
bot.py
3
bot.py
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user