1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-18 00:31:00 -05:00

I suppose new iteration didn't go well, reverting.

This commit is contained in:
toast-ts 2024-04-06 11:21:00 +11:00
parent 88dc4995f9
commit e445fa4310

View File

@ -64,14 +64,7 @@ export default class MessageCreate {
]; ];
for (const rule of automodRules) { for (const rule of automodRules) {
try { if (!automodded && await rule.check()) await rule.action();
if (!automodded && rule.name) {
const result = await rule.check();
if (result) await rule.action();
}
} catch(y) {
Logger.console('error', 'Automod', y);
}
} }
}; };
if (message.guildId === client.config.dcServer.id && !automodded) client.userLevels.messageIncremental(message.author.id); if (message.guildId === client.config.dcServer.id && !automodded) client.userLevels.messageIncremental(message.author.id);