From 3f334bee3b9ab8be2421b18869a73ba530918075 Mon Sep 17 00:00:00 2001 From: snipe <72265661+notsniped@users.noreply.github.com> Date: Sat, 20 Apr 2024 21:46:39 +0530 Subject: [PATCH] Remove unused test client event `after_invoke` --- main.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/main.py b/main.py index 50d2afb..20deaaf 100644 --- a/main.py +++ b/main.py @@ -232,12 +232,6 @@ async def on_message(ctx): logger.warn(f"Unable to send level up message to {ctx.author} ({ctx.author.id}), as they are not accepting DMs from isobot. This ID has been added to `levelup_messages` blacklist.", module="main/Levelling") settings.edit_setting(ctx.author.id, "levelup_messages", False) - - -@client.event -async def after_invoke(ctx): - logger.info(f"A command has been successfully run by {ctx.author.display_name}", module="main/Client", timestamp=True) - # Error handler @client.event async def on_application_command_error(ctx: ApplicationContext, error: discord.DiscordException):