This commit is contained in:
parent
fdaf3c38f7
commit
d81f950f3f
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,4 @@
|
|||||||
__pycache__
|
__pycache__
|
||||||
testDB.py
|
testDB.py
|
||||||
|
TIME.py
|
||||||
|
.vscode
|
4
bot.py
4
bot.py
@ -71,7 +71,9 @@ 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
|
||||||
if (now_time - last_time).days <= 0:
|
diff = (now_time - last_time).days
|
||||||
|
|
||||||
|
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()
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user