good help message

This commit is contained in:
nin0dev 2024-07-19 16:27:57 -04:00
parent d9a022ea49
commit 65f07ba747

11
main.py
View file

@ -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))