From 4208fb5d15ffeb72efc62a20d87f268477b85ee6 Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Sat, 29 Jan 2022 18:38:13 +0100 Subject: [PATCH] try to debug error --- bot.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 291a315..b4a3444 100644 --- a/bot.py +++ b/bot.py @@ -56,7 +56,10 @@ bot.help_command = commands.DefaultHelpCommand(dm_help=False, no_category="Befeh @bot.event async def on_command_error(ctx, error): - await ctx.message.delete() + try: + await ctx.message.delete() + except: + print("message not found") print(error) 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) @@ -251,7 +254,7 @@ async def start(ctx, role_id): @bot.command(help="Beende die gestartete Runde PnP", usage="") @is_gm() async def stop(ctx): - await ctx.message.delete() + #await ctx.message.delete() text_file = open("start_id.txt", "r") start_id = text_file.read() text_file.close()