From 4d4cec8b66b6a74a856d27444f3c5036a0e0f3cb Mon Sep 17 00:00:00 2001 From: sgoudham Date: Wed, 1 Jul 2020 05:18:07 +0100 Subject: [PATCH] Removed the "remove default help command" and relocated it to HelpMenu.py --- EnsoBot.py | 2 -- cogs/HelpMenu.py | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/EnsoBot.py b/EnsoBot.py index bc5364f8..883ef33d 100644 --- a/EnsoBot.py +++ b/EnsoBot.py @@ -17,8 +17,6 @@ client = commands.Bot( # Create a new bot command_prefix="~", # Set the prefix description='Ensō~Chan!', # Set a description for the bot owner_id=154840866496839680) # Your unique User ID -# Removes the default help command -client.remove_command('help') # Calls the cogs from the settings.py file and loads them if __name__ == '__main__': diff --git a/cogs/HelpMenu.py b/cogs/HelpMenu.py index ca913b06..07371f64 100644 --- a/cogs/HelpMenu.py +++ b/cogs/HelpMenu.py @@ -274,6 +274,8 @@ class HelpMenu(menus.Menu): class ReactionMenu(commands.Cog): def __init__(self, bot): self.bot = bot + # Remove default help command + self.bot.remove_command("help") # ~help command that returns a menu for help commands controlled by reactions @command(name="help", aliases=["Help"])