Add help command
This commit is contained in:
parent
ca7acfec0a
commit
59a65f778e
1 changed files with 9 additions and 0 deletions
9
bot.py
9
bot.py
|
@ -91,6 +91,15 @@ class Bot(commands.Bot):
|
|||
del self.custom_commands[command_name]
|
||||
await ctx.send(f"Deleted command \"{PREFIX}{command_name}\"")
|
||||
|
||||
@commands.command()
|
||||
async def help(self, ctx: commands.Context):
|
||||
message = "Available commands:"
|
||||
for command in self.commands:
|
||||
message += f" {PREFIX}{command}"
|
||||
for command in self.custom_commands.keys():
|
||||
message += f" {PREFIX}{command}"
|
||||
await ctx.send(message)
|
||||
|
||||
|
||||
def main():
|
||||
load_dotenv()
|
||||
|
|
Loading…
Add table
Reference in a new issue