From f744ab95de71132da89818996655dd571286830d Mon Sep 17 00:00:00 2001 From: insert Date: Sun, 11 Aug 2024 13:56:05 -0400 Subject: [PATCH] Update --- misc.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/misc.py b/misc.py index b612311..2f6eeb8 100644 --- a/misc.py +++ b/misc.py @@ -29,21 +29,6 @@ class misc(commands.Cog): except: await interaction.followup.send(message, ephemeral=True) - @commands.Cog.event - async def on_error(self, event_method, *args, **kwargs): - error = traceback.format_exc() - random.shuffle(errormsg) - print(error, file=sys.stderr) - print(args, file=sys.stderr) - print(kwargs, file=sys.stderr) - message = f"{errormsg[0]}\n```py\n{error[-1800:]}\n```\n Contact <@{self.bot.owner_id}> if the error persists" - try: - await interaction.response.send_message(message, ephemeral=True) - except: - try: - await interaction.followup.send(message, ephemeral=True) - except: - await interaction.send(message, ephemeral=True) def setup(bot: commands.Bot):