mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-12-27 00:05:39 -05:00
Fix automod preventing autoresponses from responding to non-staff
This commit is contained in:
parent
3e3b7a853c
commit
0373c3b0bc
@ -50,7 +50,10 @@ export default class MessageCreate {
|
||||
};
|
||||
|
||||
for (const rule of Object.values(automodRules)) {
|
||||
if (await rule.check()) await rule.action();
|
||||
if (!automodded && await rule.check()) {
|
||||
await rule.action();
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
if (message.guildId === client.config.dcServer.id && !automodded) client.userLevels.messageIncremental(message.author.id);
|
||||
|
Loading…
Reference in New Issue
Block a user