1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 16:30:58 -05:00

Fix automod preventing autoresponses from responding to non-staff

This commit is contained in:
AnxietyisReal 2024-01-21 00:14:28 +11:00
parent 3c8e5355ac
commit 282c833b8f

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