beautify error message
This commit is contained in:
parent
c9ad91a86a
commit
49eea64b3b
1 changed files with 2 additions and 1 deletions
3
bot.py
3
bot.py
|
@ -51,7 +51,8 @@ bot.help_command = commands.DefaultHelpCommand(dm_help=True, no_category="Befehl
|
||||||
async def on_command_error(ctx, error):
|
async def on_command_error(ctx, error):
|
||||||
await ctx.message.delete()
|
await ctx.message.delete()
|
||||||
print(error)
|
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
|
@bot.event
|
||||||
async def on_ready():
|
async def on_ready():
|
||||||
|
|
Loading…
Reference in a new issue