From 49eea64b3bf08d9f574c29cd99b42e241305e56c Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Sun, 23 Jan 2022 03:23:47 +0100 Subject: [PATCH] beautify error message --- bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index f849e54..b22293a 100644 --- a/bot.py +++ b/bot.py @@ -51,7 +51,8 @@ bot.help_command = commands.DefaultHelpCommand(dm_help=True, no_category="Befehl async def on_command_error(ctx, error): await ctx.message.delete() print(error) - await ctx.send(content="Fehler: %s" % error, delete_after=20) + em = discord.Embed(title="Error", description=error, colour=0xFF0000) + await ctx.send(content="ups, da ist wohl was schief gegangen :( traurige Bot Geräusche...", embed=em, delete_after=20) @bot.event async def on_ready():