feat(automod): add affects_self option for rules
This commit is contained in:
parent
1f4f27c26a
commit
151a5df4af
3 changed files with 6 additions and 5 deletions
|
@ -81,6 +81,10 @@ const configPreprocessor: ConfigPreprocessorFn<AutomodPluginType> = (options) =>
|
|||
rule["affects_bots"] = false;
|
||||
}
|
||||
|
||||
if (rule["affects_self"] == null) {
|
||||
rule["affects_self"] = false;
|
||||
}
|
||||
|
||||
// Loop through the rule's triggers
|
||||
if (rule["triggers"]) {
|
||||
for (const triggerObj of rule["triggers"]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue