mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 00:10:58 -05:00
I suppose new iteration didn't go well, reverting.
This commit is contained in:
parent
8fc5c1a8db
commit
5d0a85b6e4
@ -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