This commit is contained in:
parent
b310cabcbc
commit
be5e1fcbd5
10
bot.py
10
bot.py
@ -105,7 +105,15 @@ async def ident(message: types.Message):
|
|||||||
|
|
||||||
#####______________________ПИПИСА БОТ БУДЕТ ЗДЕСЬ__________________________________
|
#####______________________ПИПИСА БОТ БУДЕТ ЗДЕСЬ__________________________________
|
||||||
|
|
||||||
|
@dp.message_handler(commands=["topdick"])
|
||||||
|
async def send_time(message: types.Message):
|
||||||
|
engine = create_engine('postgresql+psycopg2://postgres:postgres@postgres.vdk2ch.ru:5432/jack_bot', echo=True)
|
||||||
|
Session = sessionmaker(bind=engine)
|
||||||
|
session = Session()
|
||||||
|
Base = declarative_base()
|
||||||
|
for user_fullname, dick_size in session.query(user.user_fullname, user.dick_size).order_by(user.dick_size.desc()).limit(10).all():
|
||||||
|
await bot.send_message(message.chat.id, f'Топ пипис!\n {user_fullname}: {dick_size} см')
|
||||||
|
session.close_all()
|
||||||
|
|
||||||
|
|
||||||
@dp.message_handler(commands=['start'])
|
@dp.message_handler(commands=['start'])
|
||||||
|
Loading…
Reference in New Issue
Block a user