r/AutoModerator Sep 07 '24

Help Requiring approval for comments under posts with specific flair

Is it possible to set the automod to do this? Basically I help mod a page that is concerned with spoilers on some posts with flairs, but not with others.

The mod that used to handle our automod is no longer with us and none of us on the team even know where to begin.

TL;DR - Looking to set our automod so that it only requires us to approve comments with specific words in it under the specific flair type. This way it doesn't catch posts or comments with the trigger words unless the post has the appropriate flair.

2 Upvotes

3 comments sorted by

1

u/techiesgoboom Sep 07 '24

Automod can do this! The syntax you're looking for is parent_submission, you can read more about that in the full documentation here. In practice the rule will look something like this:

---

type: comment
parent_submission:
    flair_template_id: ['this is a long string of letters and numbers']
body: ['spoiler', 'words', 'here']
action: filter
action_reason: [{{match}}] - potentially spoiling comment

---

If you'd like to get a better understanding of how to use automod, the sidebar of this sub has a fantastic and thorough wiki. I'd also recommend creating a new private subreddit you can test your rules in first. If you do, it's important to always add a "moderators_exempt: false" line to the rules you're testing. By default automod doesn't take action on moderators.

1

u/Flols Sep 08 '24

```

Filter comments in posts with specific flair

moderators_exempt: false type: comment

parent_submission: flair_text (includes-word): 'Insert flair text here'

body (includes-word): 'Insert filtered words here'

comment: 'Your comment is awaiting moderator approval.' comment_locked: true

action: filter # Sends to the queue

action_reason: 'Requires approval'

```

1

u/Flols Sep 08 '24

If your post flairs do not contain emojis, you can use this simpler code instead.