diff --git a/src/main.py b/src/main.py index 49d47fe..3908310 100644 --- a/src/main.py +++ b/src/main.py @@ -204,7 +204,7 @@ async def check_is_enabled(ctx: commands.Context | discord.ApplicationContext) - return True -@bot.before_invoke +@bot.check_once async def add_delays(ctx: commands.Context | discord.ApplicationContext) -> bool: blocked = CONFIG["jimmy"].get("delay", {}) if ctx.author.id in blocked: @@ -215,6 +215,8 @@ async def add_delays(ctx: commands.Context | discord.ApplicationContext) -> bool log.warning("Delaying user %s by %.2f seconds.", ctx.author, n) await asyncio.sleep(n) log.info("Artificial delay for %s lifted", ctx.author) + else: + log.debug("%s is not in %s", ctx.author.id, blocked.keys()) return True