From 282c833b8fe1e42d2892e79b52f7977447ecb862 Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com> Date: Sun, 21 Jan 2024 00:14:28 +1100 Subject: [PATCH] Fix automod preventing autoresponses from responding to non-staff --- src/events/messageCreate.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/events/messageCreate.ts b/src/events/messageCreate.ts index 16f3a6d..40d3ea2 100644 --- a/src/events/messageCreate.ts +++ b/src/events/messageCreate.ts @@ -50,7 +50,10 @@ export default class MessageCreate { }; for (const rule of Object.values(automodRules)) { - if (await rule.check()) await rule.action(); + if (!automodded && await rule.check()) { + await rule.action(); + break; + } } }; if (message.guildId === client.config.dcServer.id && !automodded) client.userLevels.messageIncremental(message.author.id);