diff --git a/cogs/exception-handler.py b/cogs/exception-handler.py index 30b779c..723513c 100644 --- a/cogs/exception-handler.py +++ b/cogs/exception-handler.py @@ -10,7 +10,10 @@ class ExceptionHandler(commands.Cog): @commands.Cog.listener() async def on_command_error(self, ctx: commands.Context, error) -> None: - await ctx.send(f'Hmm...do you know what this error means:\n\n{error}') + if error[:7] == 'Command' and 'not found' in error: + pass + else: + await ctx.send(f'Hmm...do you know what this error means:\n\n{error}') # attaching the handler when the cog is loaded # and storing the old handler