1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-09-29 04:11:00 -04: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 8fc5c1a8db
commit 5d0a85b6e4

View File

@ -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);