good help message
This commit is contained in:
parent
d9a022ea49
commit
65f07ba747
1 changed files with 4 additions and 7 deletions
11
main.py
11
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))
|
||||
|
|
Loading…
Reference in a new issue