mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 16:30:58 -05:00
I suppose new iteration didn't go well, reverting.
This commit is contained in:
parent
88dc4995f9
commit
e445fa4310
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user