forked from Pavel_Durov/python_bot
test
This commit is contained in:
parent
4907b0e524
commit
08c00b988c
6
bot.py
6
bot.py
@ -71,10 +71,10 @@ 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
|
||||
diff = (now_time - last_time).days
|
||||
print()
|
||||
diff = now_time.day - last_time.day
|
||||
|
||||
|
||||
if diff < 1:
|
||||
if diff <= 0:
|
||||
await bot.send_message(message.chat.id, f'@{message.from_user.username}, вы уже крутили пипису, ее размер {b.dick_size} см! ')
|
||||
session.close_all()
|
||||
print(diff)
|
||||
|
Loading…
Reference in New Issue
Block a user