From a18978077cf136b09b8a5ccb6340de742b792db5 Mon Sep 17 00:00:00 2001 From: TanguyPcFixe Date: Fri, 31 Jul 2026 20:43:50 +0200 Subject: [PATCH] added debug to delivery exception --- cogs/IdaCogs.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cogs/IdaCogs.py b/cogs/IdaCogs.py index 0da3744..5c57b13 100644 --- a/cogs/IdaCogs.py +++ b/cogs/IdaCogs.py @@ -3,6 +3,7 @@ from discord import option from discord.ext import commands, tasks import aiohttp import helpers +import traceback from datetime import datetime class IdaCogs(commands.Cog): @@ -112,7 +113,9 @@ class IdaCogs(commands.Cog): else: await ctx.followup.send(f"Failed to log delivery (HTTP {response}). Please contact the yellow people if that keeps happening") except Exception as e: - await ctx.followup.send(f"help : Error: {e}") + await ctx.followup.send(f"Something broke. Why do you keep breaking the bot, uh? :(") + channel = self.bot.get_channel(self.debugChannel) + await channel.send(f"{author} generated the following exception : {traceback.format_exc()}") @@ -156,6 +159,7 @@ class IdaCogs(commands.Cog): + @discord.slash_command( name="last", # guild_ids=[401372086746087425],