1
0
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:
toast-ts 2024-01-21 00:14:28 +11:00
parent 3e3b7a853c
commit 0373c3b0bc

View File

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