Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
For normal "nested" commands, use command groups
. However, in the situation described in your question, this will not help.
In your situation, I see two options:
1. Refuse the built-in help command and create your own, with a command group method
bot.remove_command("help")
@bot.group(invoke_without_command=True)
async def help(ctx, ...):
... # вручную построенная/собирающая команда help.
@help.command()
async def islam(ctx, ...):
... # подкоманда help
@bot.command()
async def islam(ctx):
"""Описание команды"""
...
@bot.command(
help="Данный текст будет использоваться в полноразмерной помощи (help islam)",
brief="Данный текст будет отображаться в help рядом с командой",
usage="Данный текст будет отображаться вместо автоматического построенного текста для аргументов (таких как <arg> [arg] и т.д.)"
)
async def islam(ctx):
...
You are not in a hurry to develop bots. The fact that you watched the video on how to make a bot will not give you knowledge in Python. Learn Python first, and then you won't ask stupid questions
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question