From db9e81ff675509973deb539d4ccce570b9b00480 Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Fri, 15 Jun 2018 00:43:58 -0800 Subject: [PATCH] Updated Error Handler --- src/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/__main__.py b/src/__main__.py index d16df03..776b3d7 100644 --- a/src/__main__.py +++ b/src/__main__.py @@ -102,14 +102,14 @@ class SebiMachine(commands.Bot, LoadConfig, Loggable): em = discord.Embed(colour=self.error_color) if isinstance(error, discord.ext.commands.errors.CommandNotFound): em.title = 'Command Not Found' - em.description = f'{ctx.prefix}{ctx.command} is not a valid command.' + em.description = f'{ctx.prefix}{ctx.invoked_with} is not a valid command.' else: error = error.__cause__ or error tb = traceback.format_exception(type(error), error, error.__traceback__, limit=2, chain=False) tb = ''.join(tb) joke = random.choice(jokes) fmt = f'**`{self.defaultprefix}{ctx.command}`**\n{joke}\n\n**{type(error).__name__}:**:\n```py\n{tb}\n```' - em.title = f'{type(error)} in command {ctx.prefix}{ctx.command}' + em.title = f'**{type(error).__name__}** in command {ctx.prefix}{ctx.command}' em.description = str(error) await ctx.send(embed=em)