3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

automod: if a rule is on cooldown, allow rules after it to trigger

This commit is contained in:
Dragory 2021-04-02 18:00:11 +03:00
parent 4f66f004d5
commit acfbb19b3f
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -27,7 +27,7 @@ export async function runAutomod(pluginData: GuildPluginData<AutomodPluginType>,
if (!rule.affects_bots && (!user || user.bot) && !context.counterTrigger) continue;
if (rule.cooldown && checkAndUpdateCooldown(pluginData, rule, context)) {
return;
continue;
}
let matchResult: AutomodTriggerMatchResult<any> | null | undefined;