beautify error message

This commit is contained in:
Aaron Riedel 2022-01-23 03:23:47 +01:00
parent c9ad91a86a
commit 49eea64b3b

3
bot.py
View file

@ -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():