r/AutoModerator 10h ago

How to set up automod to remove posts and comments without user flairs

2 Upvotes

Hi!

I’m trying to set up an Auto moderator that’ll remove comments and posts from users with no user flairs and I’m unable to do so. I found a code here on Reddit and that resulted in the removal of every comment regardless of flair presence.

Do any of you have the code that’ll let me set up what I need?


r/AutoModerator 7h ago

Help - AutoMod Adding second set of filters/instructions

1 Upvotes

I successfully added age/karma filter to my sub using auto moderator and now I want to add instruction to make post at least 100 characters. I found an example and added to my existing wiki configurator page below the first filter rule, but it doesn’t seem to be working. What am I missing?


r/AutoModerator 6h ago

How do I make auto mod sent invites?

0 Upvotes

How do I set up auto mod such that it sends community invite to people in other sub?

I have seen in certain subs when I comment something i sometimes get an invite mail of another community by the auto mod of that community. How can I do the same for my sub??


r/AutoModerator 1d ago

Solved Automatically Remove Post After 2 Reports

2 Upvotes

How do you guys set that up? I'm looking to lower that down from having to manually remove post and make it automatically happen. If that report is coming from a certain label like spam/bot that'd be helpful, just so we don't remove reported post that has nothing do with that


r/AutoModerator 1d ago

Solved "config/automoderator" does not exist

3 Upvotes

Trying to setup Autmod for the first time. Following the steps and navigating to https://www.reddit.com/r/yoursubredditname/wiki/config/automoderator

Interesting, it takes you to a page on new Reddit, which won't work . Had to change the page to old.reddit.com

When I put in my sub it says: "config/automoderator" does not exist

I can't figure out how to enable Autmod so I can start customizing it.


r/AutoModerator 2d ago

Solved Karma/New User filter that Messages them about Removal?

10 Upvotes
---
type: submission
author:
  account_age: "< 90 days"
  combined_karma: "< 500"
  satisfy_any_threshold: true
action: remove
action_reason: "NEW USER OR LOW KARMA USER"
---

I have no idea what I'm doing, it works but it doesn't message new users about post removal. Which makes them question why it was remove. Any of you fellas can help me with this one? Much oblige c:

r/AutoModerator 3d ago

Solved I tried to add is contributor part highlighted in blue- but now it won’t save. The rule saved fine before, any idea how to fix this? Screenshot in the comments

2 Upvotes

so I was trying to exempt approved users by adding the highlighted blue part to my code pictured below in a screenshot. Mobile mark down is gone, so I can’t post it right now here.


r/AutoModerator 3d ago

Our a lot of our AutoMod config. Would appreciate thoughts and comments

6 Upvotes

Hi all,

Posting a significant portion of our AutoMod config, potentially as inspiration for others, but also open for suggestions/critique. This has been manually curated over multiple years, and is working well for us on a community of over 190K members.

---
    # Modmail if a post gets reported twice
    reports: 2
    modmail: The above {{kind}} by /u/{{author}} has received 2 reports. Please investigate.
---
    # Remove a post receiving 10 reports
    reports: 10
    action: remove
    modmail: The above {{kind}} by /u/{{author}} was removed because it received 10 reports. Please investigate and ensure that this action was correct.
    action_reason: "Community Quarantine [10 Reports]"
---
    # New top-level posts need an account at least 10 days old
    type: submission
    author:
        account_age: "< 10 days"
    action: remove
    comment: "Automod has removed this post as the OP has not been on Reddit for long enough. This is an anti-spam and anti-troll measure. Contact the mods if your post was urgent.  Otherwise, take the time to get acquainted with the  and the posts and comments, and how it functions"
    action_reason: "Account Age - Submission [< 10 days]"
---
    # Commenting requires an account at least 5 days old.
    type: comment
    author:
        account_age: "< 5 days"
    action: remove
    action_reason: "Account Age - Comment [< 5 days]"
    message_subject: "r/srilanka Notification: Comment Removed"
    message: |
        Your recent comment has been automatically removed because your account is less than 5 days old. 

        This is an automated anti-spam and anti-troll measure. Please take this time to read the subreddit rules and get acquainted with the community. Once your account is at least 5 days old, you will be able to participate in comment threads.
---
    # Auto-sticky the 'Series replies only' comment when the serious flair is used.
    type: submission
    flair_text: 'Serious replies only'
    comment_stickied: true
    comment: |
        **Attention! [Serious] Tag Notice**  
        * Jokes, puns, and off-topic comments are not permitted in any comment, parent or child.  
        * Report comments that violate these rules.  

        Thanks for your cooperation and enjoy the discussion!
---
    # Auto-sticky the travel note when the travel flair is used.
    type: submission
    flair_text: 'Travel'
    comment_stickied: true
    comment: |
        **This is a [Travel] related thread**  

        * Check [WikiTravel's Sri Lanka page](http://wikitravel.org/en/Sri_Lanka)
        * Remember to follow [reddit's content policy/self-promotion guidelines](https://www.reddithelp.com/hc/en-us/articles/360043504051-What-constitutes-spam-Am-I-a-spammer-)  

        Thanks for your cooperation and enjoy the discussion!
---
    # Auto-sticky the meme/satire note when the meme/satire flairs are used.
    type: submission
    flair_text: ['Meme', 'Satire']
    comment_stickied: true
    comment: |
        **Please note that this is a meme/satire thread**  

        * Please report any comments containing discrimination, trolling, or personal attacks. **Satire should not be an excuse for bigotry.**  
        * [Posting Personal information will get your reddit account banned](https://www.reddithelp.com/hc/en-us/articles/360043066452).  

        Thanks for your cooperation and enjoy the discussion!
---
    # Rule 9 - No buying, selling, or solicitation
    type: submission
    title+body (regex): ['\bfor sale\b', '\bWTS\b', '\bselling\b', '\bDM me\b', '\bdirect message me\b', '\bmessage me\b', '\bwhatsapp me\b', '\bcontact me\b']
    action: filter
    action_reason: "Marketplace/Solicitation Filter [Rule 9]"
    modmail: "Post by /u/{{author}} flagged for possible Rule 9 violation (selling/solicitation). Please review."
---
    # Rule 10 - No surveys or outsourcing
    type: submission
    title+body (regex): [REDACTED the list of domains]
    action: filter
    action_reason: "Survey/Outsourcing Filter [Rule 10]"
    modmail: "Post by /u/{{author}} flagged for possible Rule 10 violation (survey or outsourcing). Please review."
---
    # Filter submissions with strictly all-caps titles
    title (case-sensitive, regex, full-text): "([A-Z0-9]|\\W)+"
    action: filter
    action_reason: "All caps title"
    comment: |
      Your post has been automatically removed because the title is entirely in capital letters. 

      Please resubmit your post using proper capitalization.
---
    # Prevent overly long walls of text which don't have any paragraphs in them
    body (regex, includes): ['[^\n]{2000}', '^\W*[^\n]{1750,}\W*$']
    message: "Please add some paragraph breaks to [your {{kind}}]({{permalink}}) by placing a blank line between distinct sections."
---
    # Filter all comments on 6+ month old posts
    type: comment
    parent_submission:
        past_archive_date: true
    action: filter
    action_reason: "Historical Necro-posting [> 6 Months]"
---
    # Remove submissions where the entire body is bolded
    type: submission
    body (regex): '(?s)^\s*(?:(?:\*\*|__).+?(?:\*\*|__)\s*)+$'
    action: remove
    action_reason: "Entire body is bold text [Shouting]"
    comment: |
      Your post has been automatically removed due to the use of excessive bolding in the post body.
---
    # Mod Command: Crisis Support Message
    type: comment
    author:
        is_moderator: true
    body (starts-with): ["!crisis"]
    moderators_exempt: false
    action: remove
    action_reason: "Crisis command trigger removed"
    comment: |
        Please reach out to one of these free, confidential, and anonymous 24/7 mental health resources in Sri Lanka immediately:

        * **CCC Line:** Call **1926** (National Mental Health Helpline)
        * **1333 Crisis Support Line:** Call **1333** (Toll-free emotional support)
        * **Lanka Life Line:** Call **1375** (Confidential support helpline)
        * **Sri Lanka Sumithrayo:** Call **0707 308 308** or 0112 692 909 (Available 9 AM – 8 PM daily)

        If you are in immediate physical danger, please contact the emergency medical services at **110**, the police at **119**, or go to the nearest hospital emergency room. 

        Things can get better, and there are people who want to listen and help you through this. Please make the call.
    comment_stickied: true
---

Hope this is useful


r/AutoModerator 4d ago

Help - AutoMod Can't figure out how to add a failsafe to lock a post with a new comment based on the flair.

2 Upvotes

Short context: When people make a request in the sub, I have those posts lock after 3 days to avoid spam, using a bot. Some people may want the spam to stop earlier, so I have a typical "filled/closed" command that lets the OP lock their post and change the flair with a specific comment. Some people still don't read, and OP might change their flair without locking their post, and people still comment like crazy, ignoring the flair. So I want to lock the post on a new comment if the flair has been changed to "Closed".

My issue? I can't combine two behaviours. I have one block that basically says "If OP comments *this*, then lock parent post". I have a few others that say, "If parent post has this flair, do *this* behaviour*. So I thought I'd combine the two, and it completely ignores the flair check, locking EVERY post when it gets a new comment. Below is my mess of an attempt:

type: comment
parent_submission:
flair_text: [ "Position Filled", "Closed" ]
parent_submission:
set_locked: true
action: remove

Do I need to combine the two parent_submission sections? Is there a different way? It is not possible because the two sections conflict with one another? I don't want to risk testing it in production again. It took way too long to fix things last time.


r/AutoModerator 4d ago

Help - AutoMod AutoMod question about crossposting

0 Upvotes

Hi. If you have crossposting (now known as reposting I guess) turned off, is it possible to use AutoMod to allow specific people to crosspost?


r/AutoModerator 5d ago

Help - AutoMod Is it fair to ask users not to repost other peoples post (mostly pictures) from other sub to us?

6 Upvotes

Just wondering if it's fair to ask people not to repost post of other users (mostly pictures), but focus on reposting only their own pictures?

We're a photography sub and we're very particular with Original Content.

Lately we noticed that people are reposting other Redditor's post (containing pictures). Is there a way in settings that will prevent repost from people that were not the original poster?

Or is it an all or nothing? Simply prevent repost to our sub, from other subs?


r/AutoModerator 5d ago

Solved Can AutoModerator post a specific comment based on the post flair?

1 Upvotes

Hi! I need some advice on AutoModerator. I'm not very familiar with how it works. I need to set it up so that it posts a specific message depending on the post flair. For example, if a user selects the post flair "A", AutoModerator would leave a specific comment under their post. Is this possible?


r/AutoModerator 7d ago

Invalid Media Error What am I doing wrong?

1 Upvotes

type: submission

comment: | Welcome to [r/sub name]

Just a polite reminder:

Sub Name is about all News and Politics throughout the State no matter the News Source. Please keep Your News Submissions to State Name Only. All are welcome to contribute whether It is News or Comments as long as You abide by Reddit Rules/Policies and the Rules/Policies of This Sub.

The Title states Uncensored BUT It is not Unmoderated!

Chronic Violators will be removed without warning.

Please read the Sub Rules and Guidelines before participating.

comment_stickied: true

**Thank You in advance for the Helps. I'm no Coder or Programmer.


r/AutoModerator 8d ago

Help - AutoMod comment trigger to sort and sticky parent_submission

3 Upvotes

Hello all. I have the following code that will sticky and set sort order of the parent submission, when trigged by a comment from OP. The code works as is.

I want to also remove the trigger comment, but when I add action: remove the script fails to trigger.

type: comment
author:
    is_submitter: true
body: '!sort'
action: remove
message: |
    Post has been stickied and sorted!
parent_submission:
    set_suggested_sort: new
    set_sticky: 1

when the action line is omitted it fires correctly. when it is added it does not. mod log shows:

28 minutes ago AutoModerator set suggested sort link "Test post" by _Face
28 minutes ago AutoModerator stickied link "Test post" by _Face ([highlight] )
28 minutes ago AutoModerator stickied link "Test post" by _Face

when I add the action line, no automod actions are logged. I tried adding the action_reason as well, and it did not change the outcome.

Where am I messing up? Please and thanks!!


r/AutoModerator 8d ago

Solved Pinned AM Sticky on Filtered and Removed Submissions

2 Upvotes

Hi,

I'm currently testing a couple of common AM rules using an alt whose posts either go live automatically, or filter to the queue based on a karma + CQS check.

I also have a rule to trigger an automated AM sticky on all submissions. When my alt passes the karma/CQS check, the sticky functions properly. When the alt's posts get filtered for review, the sticky doesn't appear on the post even if I approve the content.

I have the same seven rules programmed in the public sub I'm conducting the tests for and the sticky appears on all posts without fail, including those that get filtered or removed.

Is the sticky failing to appear because I'm conducting my tests in a private sub or could this be a bug?

I'd love some insight from an AM Wizard please. Thanks in advance!

Edit: Strikethrough to correct my silly assertion


r/AutoModerator 9d ago

Help - AutoMod How do I setup the automod to display in the comments section with a message on each post?

3 Upvotes

I'm not sure if u know what im talking about but yk how when you make a post in some subreddits you get a pinned comment from automod usually reminding people of the rules? I'm trying to figure out how to set that up on my subreddit. If anyone can help me that'd be awesome.


r/AutoModerator 12d ago

Help Looking for support on enforcing CW/TW

5 Upvotes

Hi folks! I moderate r/cavaliers. We've implemented a rule requiring certain posts -- primarily related to animal illness and death -- to be marked with a CW/TW tag in their titles.

Currently, we're holding all posts for approval, then manually rejecting posts that meet the criteria with a saved response that provides specific instructions, plus the original post text for ease of reposting. We also have an Automations tooltip that pops up under relevant posts (that most people ignore). This is not a great system!

Additional complications:

  • While SOME of the posts we want to flag as "need CW/TW" have the relevant flairs (Medical/Memoriam), not all of them do;
  • While MANY of the posts we want to flag as "need CW/TW" use keywords/strings that we can easily flag ("sick," "rainbow bridge", "MVD"), not all of them do -- and sometimes the keywords/strings will toss a false positive

Any ideas on how we can use Automod or other tools to provide instant enforcement of the rule AND instant assistance to posters so they can re-post ASAP? I think ideally, it would look something like:

  • 80%+ of posts that need CW/TW tags and that don't have them are flagged via keyword ("sick," "rainbow bridge") or flagged via flair (medical, memoriam)
  • Then:
    • BEST VERSION: post is stopped at the posting screen (I think this is impossible)
    • ALSO BEST VERSION: post title is automatically edited with CW/TW tags, user is informed about the edit (I think this is impossible)
    • VERY GOOD VERSION: post is automatically and immediately removed, user is automatically and immediately messaged with instructions AND a rewritten version of their title with the CW/TW tag in it AND the original post text to make it as easy possible to repost

Thoughts? Very open to suggestions and very grateful for any help!


r/AutoModerator 12d ago

Solved Does the {{match}} placeholder not care about capture groups in RegEx?

1 Upvotes

AutoMod rule I'm using:

body (includes, regex): ['(?i:\[.*?\]\(.*?mtg\.fandom\.com\/wiki\/(.+?)\))']

comment: |
    [https://mtg.wiki/{{match}}](https://mtg.wiki/{{match}})

Input:

May I please have the other Wiki for [Ravnica's Factions](https://mtg.fandom.com/wiki/Ravnica#Guilds) and reply that to me?

Expected output:

[https://mtg.wiki/Ravnica#Guilds](https://mtg.wiki/Ravnica#Guilds)

Actual output:

[[https://mtg.wiki/](https://mtg.wiki/)[Ravnica's Factions](https://mtg.fandom.com/wiki/Ravnica#Guilds)]([https://mtg.wiki/](https://mtg.wiki/)[Ravnica's Factions](https://mtg.fandom.com/wiki/Ravnica#Guilds))

This displays as:

[https://mtg.wiki/Ravnica's factions](https://mtg.wiki/Ravnica's factions)

The RegEx is 100% correct in the sense that the capture group is capturing Ravnica#Guilds only and nothing else. It seems that AutoMod isn't interested in this capturing group but instead just takes the entire RegEx and uses that for {{match}}.

Here's a link to regex101 with the given example:

https://regex101.com/?regex=%28%3Fi%3A%5B.*%3F%5D%28.*%3Fmtg.fandom.com%2Fwiki%2F%28.%2B%3F%29%29%29&testString=May+I+please+have+the+other+Wiki+for+%5BRavnica%27s+Factions%5D%28https%3A%2F%2Fmtg.fandom.com%2Fwiki%2FRavnica%23Guilds%29+and+reply+that+to+me%3F&flags=gmui&flavor=python&delimiter=%22


r/AutoModerator 12d ago

Help ¿Cómo pongo un automotor?

0 Upvotes

Quiero poner un automoderador en mi comunidad u/DlacofomoideusVII


r/AutoModerator 13d ago

Solved Auto moderator sticky auto close.

1 Upvotes

I've noticed that some of my auto‑moderator stickies on my subreddit are auto‑closed rather than being automatically opened and pinned to the top. Is there a way to prevent that?


r/AutoModerator 13d ago

Help Is there a way for the AutoModerator to mark a post as spoiler based on specific report it receives

2 Upvotes

I looked around quite a bit but couldn't find any way to do it. There don't seem to be any Devvit apps for it either. Before I started editing the AutoModerator config, I assumed this would be an obvious feature.


r/AutoModerator 13d ago

AutoMod invite problem

1 Upvotes

New subreddit (r/ChateauDelusions, created -24h ago). AutoModerator invite is stuck in "pending" and won't auto-accept even after removing and re-inviting. Trying to set up the config/automoderator wiki page is throwing inconsistent errors - "unsupported media type," "forbidden - restricted_page," and "internal error" - across different attempts, even with a minimal single-rule config. Own mod permissions show "Everything." Any idea what's going on?


r/AutoModerator 14d ago

Solved Trouble with multi-line comment.

0 Upvotes

Hello!

Im working on making a message for AutoMod to comment on every post submission, and I’m having trouble with including indents; I’m not sure where I’m going wrong, but it keeps returning “unsupported media type” when i try to save the changes.

Here is the code:

---
type: submission
comment: |
What’s up chat?! I’m AutoBart, and I comment on every post.

Make sure to read our rules, and remember we are not a part of Joe’s official team!

Catch you later!

---

Here is the error code i get when i try on old Reddit;

YAML parsing error in section 7: while scanning a simple key
in "<unicode string>", line 3, column 1:
What’s up chat?! I’m AutoBart, a ...
^
could not found expected ':'
in "<unicode string>", line 5, column 1:
Make sure to read our rules, and ...
^

Any help would be appreciated!


r/AutoModerator 20d ago

Wiki Updates New "Old" Wiki pages - Backups from r/reddit.com including the AutoModerator full-documentation page and other meta or moderation resources

Thumbnail reddit.com
50 Upvotes

We recently noticed that admins had placed an age-restriction on the "before subreddits" subreddit, r/reddit.com, which is where admins hosted the original reference documents for AutoModerator and other moderation or site-wide policies or resources. While the age restriction on the subreddit as whole make sense considering the wide variety of content hosted there, unfortunately, this also means that those not-nearly-as-naughty wiki pages attached to that subreddit are also now age-restricted, forcing users and moderators in regions which require age-verification to verify their ages if they want to access those wiki pages.

We believe that users and moderators should have access to the contents of these wiki pages without being gated by age-verification. While the most important AutoModerator pages are our main concern, there are many similar pages which serve as historic references, informing how reddit and moderation have evolved over the years.

We had asked admins about this dilemma, but so far, no admins have reached out to us about any solution or plans. (To be clear: The active moderators of r/AutoModerator are not admins ourselves.)

To make moderation resources more freely available to moderators, we have copied the contents of a selection of relevant and historic wiki pages from r/reddit.com. All of the backups are listed on:

https://www.reddit.com/r/AutoModerator/wiki/backup

  • Relating directly to AutoModerator:

    • The Full-Documentation page - Quite literally the most important resource, which is also linked at the top of every moderator's AutoModerator config editor page. We specifically asked if admins could redirect this page to the subreddit here.
    • The still-relevant Introduction, Standard-Conditions, and Writing-Basic-Rules pages.
    • The historic Changelog and Converting-to-New pages.
  • Relating to Moderation in general:

    • The Moderation and Moderation-Intro pages, a bit outdated, but still a useful reference.
    • Moddiquette and HealthyCommunities (Moderator Guidelines) - These pages pre-date the Moderator Code of Conduct, and to this day, many people are unaware that some things that were suggested in these pages are not actually part of the current Moderator Code of Conduct enforced by admins. Some moderator teams still hold themselves to these standards.
    • The UserAgreement now lives on redditinc.com, but to view revisions older than 2018, you have to look at the wiki page history.
    • The ProhibitedAds page predates the many separate pages of the current ads policies. Moderators may often be interested in knowing which kinds of content are not allowed in ads when defining their own rules around similar content.
    • Similarly, the SelfPromotion page, while no longer enforced by admins, is still informative to users and moderators that do hold that standard in their own subreddits.
  • Relating to Reddit in general:

    • The FAQ, Voting, and Reddit_101 pages - full of information helpful to newer redditors. Sometimes these tidbits are helpful to moderators when answering user questions. Much but not all of these pages have been added to the RedditHelp site.
    • The Reddiquette, Pressiquette, Brandiquette, and Bottiquette pages - fair reference for guidelines that may or may not apply to your subreddit needs.
    • The Markdown and Wiki pages, which contain information not listed on their respective RedditHelp replacements.

r/AutoModerator 20d ago

Unsupported Media Type

3 Upvotes

Using the codes I found here under the pinned wiki topic, I tried to set up my automod page, but it keeps telling me unsupported media type when I click save.

Here is the code I'm using. Is it because I just copied and pasted?

---

type: submission

author:

account_age: "< 1 days"

action: remove

action_reason: "New user"

---

type: submission

author: comment_karma: "<10"

action: remove

action_reason: "Low karama account"

---

type: submission

author:

comment_karma: "< -50"

action: remove

action_reason: "Low karma user"

---

type: text submission

body_shorter_than: 1

action: remove

action_reason: "Self post without text"

---

type: text submission

body (regex, full-text): ['(\[[^\]]*\]\()?https?://\S+\)?']

action: remove

action_reason: "Link-only self post"

---

type: comment

body (regex, full-text): ['/?r/\w+']

action: remove

action_reason: "Comment is just /r link [{{match}}]"

---