From 65f07ba7476d1cf626cf0d520775174a24475193 Mon Sep 17 00:00:00 2001 From: nin0dev Date: Fri, 19 Jul 2024 16:27:57 -0400 Subject: [PATCH] good help message --- main.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/main.py b/main.py index 7e58e32..288928b 100644 --- a/main.py +++ b/main.py @@ -24,13 +24,10 @@ app = Client( @app.on_message(filters.command(["help", "h"], prefixes=P)) async def help(client, message: Message): - await message.reply(""" ---You can either use the `v` prefix or the native `/` commands from Telegram. Both work the same way-- -**help** - Send this -**minky** - minker -**source** - View venbot-tg's source code -**sync** 👑 - Sync slash commands - """, parse_mode=enums.ParseMode.MARKDOWN) + help_message = "--You can either use the `v` prefix or the native `/` commands from Telegram. Both work the same way--\n" + for command in COMMANDS: + help_message += f"**{command.command}**{' 👑 ' if command.description.startswith('(👑)') else ' '}- {command.description.replace('(👑) ', '')}\n" + await message.reply(help_message, parse_mode=enums.ParseMode.MARKDOWN) #region Fun @app.on_message(filters.command(["minky", "mink", "minker"], prefixes=P))