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],