r/AutoModerator • • Aug 05 '26

Solved Disjunctive rules?

Hello!

How do I setup disjunctions in rules? I'd like to have an action trigger when a post contains certain text and the author is (not verified or less than some Karma or the account is less than some age).

I don't see a way to write the disjunctive part of the rule. Must I make three rules?

title+body (includes): "my string"
author:
    account_age: "< some days"

and then also

title+body (includes): "my string"
author:
    post_karma: "< my threshold"

with more

title+body (includes): "my string"
author:
	has_verified_email: false

?

Is there at least a way to make the message text and reason common among the rules? Otherwise, I have to copy pasta them and repeat myself, which doesn't seem like it will be fun to maintain.

4 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/mikeblas Aug 05 '26

the author is (not verified) AND (less than some Karma OR the account is less than some age)

This is what I'm after. Specifically:

caseagekarmaemailaction
1lowlowunverifiedremove
2highlowunverifiedremove
3lowhighunverifiedremove
4highhighunverifiednone
5lowlowverifiednone
6highlowverifiednone
7lowhighverifiednone
8highhighverifiednone

Though, now that I've written this out, maybe also remove posts from low/low accounts even if they are verified.

2

u/Sephardson I'm working on the wiki here now! Aug 05 '26 edited Aug 05 '26

This should work for you then for cases 1-3:

---
title+body (includes): "my string"
author:
    account_age: "< some days"
    post_karma: "< my threshold"
    satisfy_any_threshold: true
    has_verified_email: false
action: filter
action_reason: "u/{{author}} has no verified phone/email, and is less than some days or < post karma, and mentioned [{{match}}]. Filtered for review"
---

2

u/Sephardson I'm working on the wiki here now! Aug 05 '26

Though, now that I've written this out, maybe also remove posts from low/low accounts even if they are verified.

this particular case (1+5) will require a separate rule:

---
title+body (includes): "my string"
author:
    account_age: "< some days"
    post_karma: "< my threshold"
    satisfy_any_threshold: false
action: filter
action_reason: "u/{{author}} is less than some days and < post karma, and mentioned [{{match}}]. Filtered for review"
---

1

u/mikeblas Aug 05 '26

Thank you very much for your help!!1!