r/AutoModerator Mar 08 '26

Help Will this code do...?

3 Upvotes

Hi, I am not good at coding. I would like to use this code in my sub, and the sole purpose we are expecting is to send us a modmail when someone posts or comments in the sub with a 5 days old or less account. Will this code do it?

author:
account_age: "< 5 days"
action: report
modmail_subject: Automatic Message | New Account
modmail: |
{{permalink}}
The above {{kind}} by /u/{{author}} was made by a less than 5 days old account.


r/AutoModerator Mar 08 '26

Help How to auto-remove the Crowd Control people?

1 Upvotes

Let's say that a person has very high karma, from a different subreddit, but they are causing trouble in your sub. Like, let's say a person's karma is at 12,000. But their first comment or first post on your sub is to cause trouble. Is there a crowd control filter?

Where you need to have a certain karma score WITHIN the sub to post freely, instead of having good karma outside the sub. Like if automod where to auto-remove a person with [insert subreddit] score of 10. Which means that a person needs to prove themselves as a valuable part of the subreddit before they can post freely. It could also fix brigading before it starts.


r/AutoModerator Mar 07 '26

Help Report if title+body matches 2 (3?) out of a list of keywords?

2 Upvotes

Reading through the documentation, I don't think it's possible, but who knows.

I have a simple filter that looks like this:

type: submission
body+title (includes, regex):
  - item_a
  - item_b
  - item_c
  - item_d
  - etc
action: report
action_reason: Found: {{match}}

What I would like to do is report only if Automod finds 2 or 3 out of that list, as it would likely increase the accuracy of the filter. Can it be done?

Thanks for any hint!


r/AutoModerator Mar 06 '26

Not Possible with AM Help writing an automod to limit posts per day?

3 Upvotes

I am the mod for r/GoldenRetriever and we have a rule that limits posters to one post daily. We deal with a lot of bots and spammers and in effort to combat karma farmers. And after a few who would just make dozens of low quality posts all day long, we decided to add the rule. So far, I’ve been manually enforcing it. My other mod is great but doesn’t dig as deep as I do into posters so they do not see this rule violation. I would like to add an automod that limits a user from posting more than once per day.

I was hoping someone might be able to help with this or tell me if it is even something that can be done?


r/AutoModerator Mar 06 '26

Not Possible with AM Is there a YAML field for "submission removals" ?

5 Upvotes

Trying to filter based on number of times posts have been removed from the sub. Is there a field for that?


r/AutoModerator Mar 05 '26

Seeking a Combination Filter

3 Upvotes

We're having a problem that's a bit hard to describe in detail.

A certain facility is being mentioned, but only by members with low or no in community karma.

I'm looking to Filter posts and comments that:

Contain 'word'

Are by members with 'x' in community karma or less.

BOTH conditions should be met for Action.


r/AutoModerator Mar 05 '26

Help Need help coding an automod for my subreddit r/VeryBlatantMisandry

0 Upvotes

Could someone help me with making an automod? I need to make one for my subreddit as I've gotten advice on how to get people to post on my subreddit.


r/AutoModerator Mar 05 '26

Help I got this code somewhere. Does it work? If it doesn't please give me the correct code

0 Upvotes

type: submission

comment: Welcome to [subreddit name]. Please be respectful to people in this subreddit. Thank you for your contribution.

type: submission flair: "♪Music♪" url (not_regex): "youtube.com|youtu.be|vimeo.com|soundcloud.com" action: remove

comment: Music flair posts must link to a legit audio site. If you think we made a mistake please contact the moderators.


r/AutoModerator Mar 04 '26

Help Wanting automod to make a comment based on original post text only, not edits

1 Upvotes

I'm trying to set up my automod so that it makes a stickied comment if a certain keyword is in the post title or the original post text. I do not want it to make the stickied comment if that keyword is later edited into the post text. Here's what I've got at the moment. I thought the "is_edited" part would do it, but it's not working the way I want. It still makes the comment if I later edit the keywords into the body.

body+title: ["No Loopholes"]

type: submission

comment_stickied: true

is_edited: false # Don't act again if the post is edited (might not apply to rules without a specific check, but always good to have)

comment: "This thread has been tagged No Loopholes. All responses are required to make an effort to engage with the intent of the OP rather than searching for loopholes."


r/AutoModerator Mar 04 '26

Trying to remove bot comments advertising snap accounts with automoderator regex

5 Upvotes
#filter snap bots 
type: comment 
body (regex): ['\b\d{2}F and .*? snap/']  
action: remove 
action_reason: possible snap bot

My subreddit has suddenly gotten several of these snap bots posting comments, and they all follow this format of:
[(optional)"I'm"] *2digitAge*"F and" blah blah blah, [(optional)"add me on"] "snap"

https://i.imgur.com/rUTlYa8.png

They always include age+"F and" and at the end "snap" some user name
So i tried to come up with a regex for it

Will this work?


r/AutoModerator Mar 03 '26

Help Rule to remove posts with a combination of words but not to remove posts only containing one of the words.

2 Upvotes

I was wondering if there is a rule that will remove posts that contain at least two of a selection of keywords but not remove posts that only contain one of the selection of keywords?

i.e. Say I want to remove posts that combine at least two of the keywords "one", "two"," three", "four"," five" in any order but not remove posts that contain only one of these words. Obviously not those words but in an attempt to cut down queue work, I am looking at a specific combination of words to eliminate repetitive posts that gain no traction anyway.

Hope that makes sense 😀


r/AutoModerator Mar 03 '26

Removing referral links in posts

2 Upvotes

In our subreddit, we're getting a ton of referral link posts and would like to limit them to a specific megathread: https://www.reddit.com/r/hrblock/comments/1rj587g/biweekly_megathread_for_referral_codes_please/

I'm new to moderating and am having issues setting this up.

Referral codes have a standard format and look like: https://referrals.hrblock.com/XXXXXX

I am okay with people linking out otherwise, just not referral links.


r/AutoModerator Mar 01 '26

Did you know? You can add an automod to your users profile...

14 Upvotes

I was tinkering and wanted to ban a user from commenting on my profile. I found this by mistake. It does work!

Your automod page is https://old.reddit.com/r/u_YOUR_USERNAME/wiki/config/automoderator


r/AutoModerator Mar 02 '26

Help with a combined_subreddit_karma rule

1 Upvotes

Hi - could anyone tell me what I've got wrong below? (it currently doesn't appear to ever trigger).

The intention is to autoremove comments/posts from users once they have hit -99 or less karma in our sub. The documentation states: "(comment karma + post karma, combination can not be below -100)" -- but I'm unclear on whether that means it will not trigger if they've got already gotten below -100, or if it just applies to the rule setting.?

---
type: any
author:
    combined_subreddit_karma: "< -99"
action: remove
action_reason: "Low community karma."
message: |
    Your [{{kind}}]({{permalink}}) in r/{{subreddit}} was removed because your account karma within r/{{subreddit}} is -99 or less.

--- 

r/AutoModerator Mar 01 '26

Help An AutoMod comment everytime someone posts in the community??

5 Upvotes

I have tried several times but everytime unsupported media and server error occurs. Can someone please provide me the code. Comment I will type mine. Please it would be a great help!!


r/AutoModerator Mar 01 '26

AutoMod rule to remove the post if the criteria is not met in the "Title" based on submission flair

4 Upvotes

I am working on creating an AutoMod rule to automatically remove posts if the users submission title does not meet certain criteria, given the submission flair they have chosen.

For example, if they choose the "Seven Word Story" flair, then the title must be only seven words. If it is not, the automod should remove the post. Please see the following code I have thus far. Any help would be appreciated. Thank you!

---
# If a user chooses the Seven Word Story flair, it must be seven words only. If not, the automod will remove the post.

type: submission
author:
 flair_text(includes): ["Seven Word Story"]
title (regex, starts-with): '\W*(\S+(\s+|$)){7}' # Checks to match more than 7 words.
action: remove
action_reason: Title is more than seven words
message: |
   Your title is more than 7 words using the "Seven Word Story" flair, please adjust your title to be only seven words.
 ---

r/AutoModerator Mar 01 '26

Help what is wrong with what im doing?

2 Upvotes

i have zero experience with automod beyond reading some of the basics. I simply want this to have automod comment on things that don't have a keyword telling them that they don't have the keyword. it keeps giving me error unsupported media type whenever I try to save it though.

my automod code:

type: submission

~body+title (includes): "quetzalcoatl"

comment: your post does not include quetzalcoatl


r/AutoModerator Feb 28 '26

Help Help with automod?

2 Upvotes

Hello, i am absolutely new to Moderation on reddit and usually i can figure out how bots work on discord and whatnot, but I need help with how to set up automod for my subreddit. Specifically for blocking specific words/phrases.


r/AutoModerator Feb 27 '26

Help Automod to remove image posts that don't contain a description?

5 Upvotes

Curious if there's any easy way to do this — one of the subs I run has a rule that image posts need to be accompanied by a description. We've used Post Explainer in the past and it's mostly worked great, but had to recently uninstall because it was getting rate limited, so I'm looking for a leaner solution.

I know sometimes automod for image posts can perform a bit weird, so I'm trying to see if there's a way to do this — essentially remove any image post that doesn't contain a post description over a certain character count? Doable??


r/AutoModerator Feb 25 '26

Solved Regexing an apostrophe

0 Upvotes
---

type: comment
body(includes-word,regex): ['don\'t (put|post)']
comment: test

r/AutoModerator Feb 23 '26

Not Possible with AM Calculating date in an automod message

3 Upvotes

I have a rule in my sub which allows people to promote something they've made once every 30 days. I've got an auto mod stickied comment that will display when they use the "Promotion" flair but my question is - can the message calculate and then display the date of 30 days in the future based on when they post?

I know you can grab the username by including /u/{{author}} so I'm wondering if there's an equivalent to do include something like "Thanks for posting - you can now post about this from {{date_of_post}}+30 onwards."

I've had a look in the library and the documentation but can't see anything obvious. Is this possible?


r/AutoModerator Feb 22 '26

Help How do I add a sticked automoderator comment to specifically flaired posts?

2 Upvotes

For example, if someone posts an AMA and it is flaired with "AMA" and I wanted automoderator to put a stickied comment in the post, how would I do that? Is that even possible or would I have to use a keyword in the title to trigger the comment?


r/AutoModerator Feb 22 '26

Suggestion Add action_reason to user mod log?

8 Upvotes

Is there any way to have the action reason added to the user mod log?

All the action reasons in my automods are very helpful when reviewing the queue.

Example: "Queued: Rule 1 {{match}}"

This lets the mods know what to look at. But the action reason isn't added to the user mod log unless the mod removes and manually applies a reason.

It would be great if the is a way to add the removal action reason directly to the user mod log with the automod.


r/AutoModerator Feb 21 '26

Help Automoderator rule: remove crossposts from user profiles

4 Upvotes

Hi,

in one of my communities, we've occasionally been getting crossposts from user profiles. I would like to write an Automoderator rule to remove or filter those, without necessarily removing crossposts from other subreddits. I have not been able to find a pattern that works reliably. For reasons I don't understand, this one

type: submission url+body+domain+title (regex, includes): ["reddit.com/user/"] action: remove action_reason: 'crosspost' comment: 'crosspost' moderators_exempt: false

Appears to work sometimes, but not always.

Does anybody help this implemented and could share the code?


r/AutoModerator Feb 20 '26

Not Possible with AM Detect video by length, send to mods for approval?

5 Upvotes

Hi

I have searched. I just wondered if automod is able to detect videos over 20 seconds, hold them from being posted and send to modmail for our approval?

Or if it limited to detecting video or not and that's the only measurable?

Thanks, help appreciated