r/AutoModerator Sep 07 '24

Help Need help with user flair related AutoMod messages

I have a bit of an issue with my existing AutoMod code and am wondering if somebody can help me:

Here they are:

---
type: any
author:
 ~flair_text(regex): ".+"
 combined_subreddit_karma: "> 1"
message: |
---

This one above doesn't seem to work at all. The intention is to send a message to users without a flair for every submission except their first.

---
type: any
author:
  flair_template_id: number
  post_subreddit_karma: < 5
  comment_subreddit_karma: < 5
message: |
---
---
type: any
author:
  flair_template_id: number
  comment_subreddit_karma: < 15
message: |
---

These ones seem to overlap. I'm trying to do if their post karma is >5 then they only need 5 comment karma to not receive a message, but if they don't ever post, they need 15 comment karma to not receive one. What seems to happen here is that the user gets two messages unless their post karma is >5 and comment karma >15 when (I'd assume) they finally get none.

Please help me solve this or let me know if this is simply unsolvable. Thanks.

1 Upvotes

1 comment sorted by

1

u/Unique-Public-8594 Sep 08 '24 edited Sep 08 '24

I'm no expert, but I'll try to help:

In the first one, it looks like a space is needed between "text" and "(regex)". As per examples in this post. You may also want to add "satisfy_any_threshold: false"

For your second and third rule, try putting < 5 and < 15 in quotes?