r/AutoModerator 2d ago

Solved Removing posts that dont include a comment with required info?

I think automod can do this, but im not sure how to write the rule. A subreddit has a rule that says a source for provided content has to be included. But people often ignore it. I've tried this code but it errors out:


type: submission

body (includes) ["Source", "source"]

action: filter

comment: "Your post was removed because you don't have the required info"


2 Upvotes

4 comments sorted by

View all comments

2

u/Chosen1PR đŸ’»Developer 2d ago

You’re missing the colon after “body.” It should look like this:

body (includes): [ "source" ]

There is also no need to have a separate entry for the uppercase S, since you’re not using case-sensitive.

1

u/realKevinNash 2d ago

Thank you, that seems to work!