This commit is contained in:
Pavel_Duron 2022-11-18 16:39:34 +10:00
parent fdaf3c38f7
commit d81f950f3f
2 changed files with 7 additions and 3 deletions

4
.gitignore vendored
View File

@ -1,2 +1,4 @@
__pycache__
testDB.py
testDB.py
TIME.py
.vscode

6
bot.py
View File

@ -71,7 +71,9 @@ 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
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} см! ')
session.close_all()
else:
@ -80,7 +82,7 @@ async def ident(message: types.Message):
a.datetimes = datetime.datetime.now()
session.commit() #обновляет запись
await bot.send_message(message.chat.id, f'@{message.from_user.username}, ваш писюн {size_change}\
теперь он равен {a.dick_size} см! ')
теперь он равен {a.dick_size} см! ')
session.close_all()
else: