mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 04:10:59 -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)) {
|
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);
|
if (message.guildId === client.config.dcServer.id && !automodded) client.userLevels.messageIncremental(message.author.id);
|
||||||
|
Loading…
Reference in New Issue
Block a user