forked from Pavel_Durov/python_bot
test
This commit is contained in:
parent
fdaf3c38f7
commit
d81f950f3f
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,4 @@
|
||||
__pycache__
|
||||
testDB.py
|
||||
TIME.py
|
||||
.vscode
|
6
bot.py
6
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()
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user