From e445fa4310feb5248c072e93c9613150988e7ac1 Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Sat, 6 Apr 2024 11:21:00 +1100 Subject: [PATCH] I suppose new iteration didn't go well, reverting. --- src/events/messageCreate.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/events/messageCreate.ts b/src/events/messageCreate.ts index d15b968..831ed62 100644 --- a/src/events/messageCreate.ts +++ b/src/events/messageCreate.ts @@ -64,14 +64,7 @@ export default class MessageCreate { ]; for (const rule of automodRules) { - try { - if (!automodded && rule.name) { - const result = await rule.check(); - if (result) await rule.action(); - } - } catch(y) { - Logger.console('error', 'Automod', y); - } + if (!automodded && await rule.check()) await rule.action(); } }; if (message.guildId === client.config.dcServer.id && !automodded) client.userLevels.messageIncremental(message.author.id);