This commit is contained in:
parent
9feb5f5d9e
commit
1f0be6557b
3
bot.py
3
bot.py
@ -73,13 +73,14 @@ async def ident(message: types.Message):
|
||||
if session.query(user).filter(user.user_id == message.from_user.id).first():
|
||||
a = session.query(user).filter(user.user_id == message.from_user.id).first() # запрос на поиск в таблице
|
||||
a.dick_size = (a.dick_size + numb)
|
||||
a.datetimes = datetime.datetime.now()
|
||||
session.commit() #обновляет запись
|
||||
await bot.send_message(message.chat.id, f'{message.from_user.full_name}, ваш писюн {size_change}\
|
||||
теперь он равен {a.dick_size} см! ')
|
||||
session.close()
|
||||
|
||||
else:
|
||||
int_table = user(user_id = message.from_user.id, user_fullname = message.from_user.full_name, dick_size = numb)
|
||||
int_table = user(user_id = message.from_user.id, user_fullname = message.from_user.full_name, dick_size = numb, datetimes = datetime.datetime.now())
|
||||
session.add(int_table)
|
||||
session.commit()
|
||||
await bot.send_message(message.chat.id, f'{message.from_user.full_name}, ваш писюн {size_change}\
|
||||
|
Loading…
Reference in New Issue
Block a user