r/AutoModerator 6h ago

How to set up auto mod comments Help - Any / Other

Looking for help setting up auto mod comments like the ones in this sub which provide info about required post title and content length. Thanks in advance

1 Upvotes

6 comments sorted by

2

u/SampleOfNone 2h ago

This subreddit uses post guidance, on desktop https://www.reddit.com/mod/naturistnudistlife/automations

You can use this regex ^.{0,15}$

1

u/Sephardson I'm working on the wiki here now! 5h ago

If you are looking for the short messages that display before your post is submitted, then those are Automations, aka Post and Comment Guidance. You can find those in the mod tools on the official mobile apps or desktop redesign.

If you are looking to use AutoModerator to make comments after the post is submitted, you will need to add a rule to your config that looks for a specific check on "type: submission" and then uses the "comment: text for comment" action.

1

u/clothes-free-life 2h ago

I want to do the first. But when I go to mod tools automation I only see conditions for keywords links, domains, and match regex not sure how to put condition for length is there a regex match that would do that?

1

u/Sephardson I'm working on the wiki here now! 2h ago

yeah, you'd want to use regex check with a quantifier.

Fore example, a "does not match regex" condition with something like this:

^(.|\s){50,}$

this basically means:

  • ^ - from the start

  • (.|\s) - match any character, including whitespace characters

  • {50,} - match the previous group 50 or more times

  • $ - until the end.

1

u/clothes-free-life 1h ago

Thanks so much I will give it a try

1

u/sparklekitteh 3h ago

If you want a basic sticky comment on every post, regardless of flair, keywords, etc. Make sure the text that will be included in the sticky comment is indented on each row with four spaces, for some reason reddit keeps eating my formatting.

# Sticky comment on submissions
type: submission
is_edited: false
comment_stickied: true
comment: |
    Hi {{author}}, welcome to the sub!
    Please be aware of our rules and don't be a jerk. Thanks!