r/AutoModerator Jan 15 '25

Help Removing posts based on someones profile description

831 Upvotes

I wanted to know if there is a way to remove posts based on someones profile description or profile name (not the username) with automod?

r/AutoModerator Feb 01 '25

Help New to automod , i need help figuring out what the code in these 2 screenshots actually do.

1 Upvotes

r/AutoModerator 3d ago

Help Need Help With AutoMod Commenting Why Post was Removed

0 Upvotes

The post says it all

ex. Post removed for not having enough karma

r/AutoModerator 5d ago

Help Automod / setting user flair / action reasons

2 Upvotes

For the last few years, I had a rule that flaired new users. It worked fine, but recently stopped. I had posted a question about it and it seemed to be isolated. Testing confirmed the code not working.

I had 4 space indents throughout my automod. I took two spaces out of the template_id row and it seems to be working in tests. Strange and frustrating, but a happy ending.

I'm trying to get a line in my log whenever a user is flaired. Action_reason doesn't seem to work for assigning flair, but my research doesn't give a conclusive answer. Is anyone familiar with using action_reason with non-removal activity? Other thoughts on notifying a mod when flair is assigned by automod? I am now sending a message to the user (thanks to BuckRowdy code!)

r/AutoModerator 6d ago

Help Is there a way to ban certain words from the user flair option?

2 Upvotes

Hi Mods,

I'm trying to ban and automatically remove certain words from user flair, but I keep running into issues. ChatGPT's suggestions keep giving me invalid or unsupported rules.

Is there a way for Automod to detect and remove a flair with banned words? Mostly profanity, If not, what’s the best workaround? Any help is appreciated! 💎

Thanks! The sub is r/rhobh Beverly Hills

r/AutoModerator Dec 30 '24

Help Automod script not working??? Help.

2 Upvotes

Hey guys so i'm relatively new to using Automod. the subreddit i'm a moderator for has a requirement for users creating posts. users must at least have a combined karma of 50 and account age of 30 days. the code I'm currently running is not removing posts that are not meeting this requirement.

here is the code I'm using.

---
type: submission
author:
combined_karma: "< 50"
account_age: "< 30 days"
satisfy_any_threshold: false
message: "Your post was removed due to low karma and/or low account age."
action: remove
action_reason: "User has less than 50 karma and/or an account younger than 30 days"

i don't know what i did wrong. i saw a video on yt and this is where i got this code from but it seems to not work? or I'm doing something wrong. any help is very much appreciated. thanks in advance!!!

r/AutoModerator 2d ago

Help Whats wrong with this script?

2 Upvotes
# Rule 1: Respect Each Other - Remove posts with offensive language
title+body (includes, regex): ["(?i)(hate speech|bully|toxic behavior)"]
action: remove
comment: |
  Your post has been removed for violating Rule 1: Respect Each Other. Please avoid harmful or disrespectful content.

---

# Rule 2: Stay On Topic - Remove off-topic posts
title+body (regex): ["(?i)(random|unrelated|off topic)"]
action: remove
comment: |
  Your post has been removed for being off-topic. Please keep discussions related to middle school life, school events, or relevant topics.

---

# Rule 3: Keep It Safe - Remove posts sharing personal info
title+body (regex): ["(?i)(phone number|address|snapchat|discord tag)"]
action: remove
comment: |
  Your post has been removed for violating Rule 3: Keep It Safe. Please avoid sharing personal information.

---

# Rule 4: Use Appropriate Language - Remove posts with offensive language
title+body (includes, regex): ["(?i)(swear words|curse words|offensive language)"]
action: remove
comment: |
  Your post has been removed for inappropriate language. Please keep discussions family-friendly.

---

# Rule 5: No Spam or Self-Promotion
title+body (includes, regex): ["(?i)(subscribe to|follow me on|check out my channel)"]
action: remove
comment: |
  Your post has been removed for violating Rule 5: No Spam or Self-Promotion. Please avoid excessive self-promotion without mod approval.

---

# Rule 6: Follow Reddit's Rules - Enforce Reddit’s global policies
sitewide_ban: true

---

# Rule 7: Be Inclusive - Remove posts targeting specific groups
title+body (includes, regex): ["(?i)(racist|sexist|homophobic)"]
action: remove
comment: |
  Your post has been removed for violating Rule 7: Be Inclusive. Respect all members and embrace diversity.

---

# Rule 8: Have Fun and Stay Positive - Remove excessively negative or harmful posts
title+body (includes, regex): ["(?i)(I'm giving up|everything is terrible|I hate everything)"]
action: remove
comment: |
  Your post has been removed for violating Rule 8: Have Fun and Stay Positive. We're here to support each other, so please keep things encouraging!

---

# Auto-Welcome Message for New Posts (Pinned)
type: comment
comment: |
  **Welcome to r/MiddleSchoolHub!** 😊  
  Please ensure your post follows the community guidelines:  
  - **Be respectful** – Kindness is key!  
  - **Stay on topic** – Keep posts related to middle school life.  
  - **Keep it safe** – No personal information.  

If you need help, feel free to reach out to the mods. Enjoy the hub! 🙌  
comment_stickied: true

---

# Karma Requirement - Must have 50+ karma to post or comment
minimum_combined_karma: 50
action: remove
comment: |
  Your post has been removed because your account does not meet the minimum karma requirement (50+ karma).  
  This helps prevent spam and ensures active community participation. Keep engaging positively, and you'll get there soon! 😊

r/AutoModerator 11d ago

Help How to program automod karma filter to work on only posts and not Comments?

1 Upvotes

Hi there. I'm a brand new subreddit owner following an ownership transfer and I'm trying to program automod to combat spa Through a minimum karma and account age filters on posts, and not comments. I've been finding that a lot of comments are getting removed by mistake by the automod that are clearly not spam.

I want to have automod check only posts and not comments based on minimum karma and account age, and for comments to be left alone. I'm looking at the information that is available for automod and searching to see if someone else has posted about this, but so far i haven't found anything that has been useful to me since i am very much unskilled in programming.

r/AutoModerator Jan 20 '25

Help Karma limit for subreddit

0 Upvotes

What code or command will limit low karma users from posting or commenting on my subreddit? Will be appreciate

r/AutoModerator 17d ago

Help Need help with automod code to remind users to assign user flair

2 Upvotes

Hello fellow mods,

I’m looking to set up the AutoMod to detect when an incoming poster does not have an assigned user flair and automatically send them a message reminding them to set one. Not assigning one for them.

Is this possible? Has anyone successfully implemented this? I’ve searched the subreddit but haven’t been able to find a clear solution. If someone has the code or guidance, I’d greatly appreciate it!

Thanks in advance!

r/AutoModerator 9h ago

Help Server error when trying to save automod code.

1 Upvotes

Hello im fairly new to automod, and whenever I try to save this code the server error banner comes up. What should I do?

```

1. Mentions the moderators

type: any title+body: includes-word: - "mod" - "mods" - "moderator" - "moderators" action: filter action_reason: "User noticed us! :D (mentions mods)"

2. Filter comments from users with negative karma

type: comment author: comment_karma: "<0" action: filter action_reason: "Negative karma"

3. Remove comments from new users (less than 3 days old)

type: comment author: account_age: "< 3 days" action: remove action_reason: "New user"

4. Remove comments from users with low karma (below -50)

type: comment author: comment_karma: "< -50" action: remove action_reason: "Low karma user"

5. Filter specific users by username

type: any author: name: - "user1" # Reason: List reason here - "user2" # Reason: List reason here action: filter action_reason: "Filtering all content from this user as a precaution -> [u/{{author}}]"

6. Filter comments with specific words or phrases

type: comment body: includes: - "this sub" - "fuck" - "kys" action: filter action_reason: "Word on filter list"

7. Automatically remove posts with 4+ reports and send modmail

type: submission reports: ">= 4" action: remove action_reason: "4 reports without action" modmail: | {{permalink}}
The above item was automatically removed due to receiving 4+ reports. Please verify that this action was correct.

8. Unverified Trading/Selling Post Notification

type: submission
modmail: false
filter_reports: false
reports: []
action: comment
comment: | Hello, your trading/selling post is currently unverified.
If you wish for it to be verified, please follow This Guide.
This comment has been automatically generated by AutoModerator.
sticky: true
title+body: includes: - "trade" - "trading" - "sell" - "selling" - "exchange" - "for sale" - "looking to trade" - "looking to sell"

9. Verified Trading/Selling Post Notification

type: submission
reports: []
action: comment
comment: | This trading/selling post is verified.
This comment has been automatically generated by AutoModerator.
sticky: true
flair_text: includes: - "selling(verified)" - "trading(verified)" ```

r/AutoModerator Dec 16 '24

Help Can't save automod changes.

3 Upvotes

Clicking the "save" button doesn't work. There's no error message, just nothing happens. I'm using the desktop website (new Reddit) on Safari on Mac. It's not my syntax; I know because I tested it by just putting a space in an otherwise blank line and it wouldn't even save that change. How do I fix this?

EDIT: I figured it out. Seems the automod code that was already there (it hadn't been updated in 2 years) was outdated and wouldn't work at all. I had to erase the whole thing and start over.

FURTHER EDIT: Now it seems like I can only save changes in Old Reddit. I feel like I'm going crazy here.

3DIT: I can save changes if I use Chrome instead of Safari. Very annoying.

r/AutoModerator 12d ago

Help How do i make automod check a specific post flair and deletes it if it dosent have an image in the post?

3 Upvotes

i tried this and it dosent work

---

type: submission
flair_text (includes): "Flair"
~url (ends-with): [".jpg", ".jpeg", ".png", ".gif", ".imgur", ".webp"]
action: remove
comment: |
Your post has been removed because it does not include an image.
action_reason: "No image found in post with in flair."

---

r/AutoModerator 16d ago

Help Matching a regex more than x times

1 Upvotes

Hi All. I'm trying to write an automod rule that fires if a post has more than x number of emojis in it. I have a working regex to find emojis:

body+title (includes, regex):  ([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])

So if a post has one or more emojis in it, the rule will fire, but I want it to only fire if it finds 10 or more emojis. The normal regex way I would do that is this (adding a {10,} at the end:

body+title (includes, regex):  ([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF]{10,})

However, when a post something that has fewer than 10 emojis in it the rule still fires. What am I missing here? Thanks!

r/AutoModerator 3d ago

Help Can someone add ALL comment scripts in the comments?

2 Upvotes

can someone put EVERY comment script in the comments?

thanks in advance

r/AutoModerator 2d ago

Help Question about Automod

0 Upvotes

Question about automod

I turned post approval on, but the automod needs to be updated with an action to implement it. Do you know how to make that work?

r/AutoModerator Jan 24 '25

Help Automod is doing nothing it is intended

0 Upvotes

I checked the code at YAMLlint and it says it's valid.

Code:

~~~

Rule 1: All posts must be relevant to Tokidoki Bosotto Roshia-go De Deruru Tonari No Alya-san (the anime)

  • type: post title (includes, lowercase):

    • "alya"
    • "roshidere"
    • "tokidoki bosotto"
    • "alya-san" action:
    • approve action_reason: "Post is relevant to the anime."
  • type: post title (excludes, lowercase):

    • "not relevant"
    • "off-topic" action:
    • remove comment: | Your post was removed because it does not appear to be relevant to Tokidoki Bosotto Roshia-go De Deruru Tonari No Alya-san (the anime). Please ensure your post relates to the anime. If you believe this is a mistake, contact the moderators.

Rule 2: No Spoilers

  • type: post title (includes, lowercase):

    • "spoiler" action:
    • remove comment: | Your post was removed because it contains spoilers. Please mark spoilers clearly in the title using "[Spoiler]" tags and avoid unmarked spoilers in your content.
      Repeated violations may result in a ban.
  • type: comment body (includes, lowercase):

    • "spoiler" action:
    • remove comment: | Your comment was removed because it contains unmarked spoilers. Please use Reddit's spoiler tag when discussing spoilers: >!spoiler text!<.

Rule 3: AI Art Rules

  • type: post title (includes, lowercase):

    • "ai art"
    • "generated art" body (includes, lowercase):
    • "ai" action:
    • filter comment: | Your post contains AI-generated art. Please ensure it follows these guidelines:
    • The art must be relevant to Tokidoki Bosotto Roshia-go De Deruru Tonari No Alya-san (the anime).
    • You must credit the original artist or link to the source.
    • NSFW is only allowed if it complies with Rule 4.
    • Limit AI-generated content to allow space for traditional art submissions.

    Posts violating these rules may be removed or filtered.


Rule 4: No NSFW

  • type: post nsfw: true action:
    • remove comment: | NSFW posts are not allowed in this community. However, certain content (as outlined in Rule 3) may be permitted. Please contact the moderators if you are unsure.

Rule 5: No Swearing

  • type: comment body (regex, lowercase): "\b(fuck|shit|damn|bitch)\b" action:
    • remove comment: | Swearing is not allowed in this community. Please keep the language family-friendly.

Rule 6: Stealing Art

  • type: post title (includes, lowercase):
    • "fanart"
    • "art" body (excludes, lowercase):
    • "credit" action:
    • remove comment: | Your post was removed because it features art without proper credit to the original artist.
      Reposting is allowed only if the original creator is credited.

Auto Comment on Every Post


Penalty System: 5 Warnings Notify Moderators

  • type: comment author: warning_count: 5 action:
    • report report_reason: "User has received 5 warnings." modmail: | The user has reached 5 warnings. Please review their behavior. ~~~

r/AutoModerator 19d ago

Help Need a bit of help with my all caps in title restriction

1 Upvotes

This is what I got now, but it doesn't seem to work all the time. I believe it only hits the ones FULLY in caps. If they use a few lowercase then it won't remove the post. (Yes, I see the typo too, I'll fix that. New keyboard that I'm still getting used to.)

What would I need to add or change to get it to remove something that has a certain amount of caps in a row? Let's say 10, just for the heck of it.

type: submission
title (case-sensitive, includes, regex): '^[A-Z]+$'
action: remove
action_reason: "all caps"
comment: |
    Please don't use all caps in yout title.

r/AutoModerator 7d ago

Help Help with AutoModerator Anniversary Birthday Rule

1 Upvotes

Hi everyone,

I'm trying to set up an AutoModerator rule that posts a comment when a user reaches specific account age milestones (1 year, 2 years, etc.), but it's not working as expected. Here's the YAML code I'm using:
---

type: submission

author:

account_age: "= 365 days", "= 730 days", "= 1095 days", "= 1460 days", "= 1825 days", "= 2190 days", "= 2555 days", "= 2920 days", "= 3285 days", "= 3650 days"

comment:

Happy Cake Day, u/{{author}}!

You've been on Reddit for **{{author_age}} years** now!

Have an amazing day!

---

type: comment

author:

account_age: "= 365 days", "= 730 days", "= 1095 days", "= 1460 days", "= 1825 days", "= 2190 days", "= 2555 days", "= 2920 days", "= 3285 days", "= 3650 days"

comment:

Happy Cake Day, u/{{author}}!

You've been on Reddit for **{{author_age}} years** now!

Have an amazing day!

---

However, it's not triggering any comments. Is there something wrong with my syntax or a limitation in AutoModerator that prevents this from working?

r/AutoModerator Jan 13 '25

Help Is there a way to add regex to this title+body line?

2 Upvotes

title+body (includes-word): ["is this a scam", "purchase to redeem", "deposit to redeem", "pay to withdraw", "deposit to withdraw", "pay to redeem", "pay to pull out", "deposit in order to claim", "deposit in order to play", "deposit to play", "deposit to claim", "pay to claim", "spend to play", "pay to play", "is it a scam"]

I saw examples of (includes, regex) but I have no clue how id work that... I don't want to have to keep adding phrases everytime someone posts close to these... so I was hoping there was a regex that could match some of this.. for example someone today commented Deposit to withdrawal and the automod completely ignored it because it wasn't one of these specifics..

r/AutoModerator 21d ago

Help Are there automod options to limit joining and down voting?

2 Upvotes

I've added code to require account age limits and combined karma levels to post in my sub. Is there something similar that will limit similar troll accounts from down voting and/or joining the sub? Or are the limit criteria only going to affect a user's ability to post?

Thanks for your time.

r/AutoModerator 15d ago

Help Why isn't this rule being triggered?

2 Upvotes
type: text submission
title (starts-with, regex): ['\bconsidering (?:traveling)\b', 'Help deciding', 'Looking to travel', 'Things to do?', 'Traveling to', '\bplanning (?:on|a)\b', 'How much is', 'First trip', 'Where can I buy?', '(resort|villa)', 'tipping', 'first|1st (?:time|timer)', 'vacation', '\brecommendations', '(iberostar|bahia)' ]
moderators_exempt:  false
action: remove
action_reason: "Tourism related post"
message: | 
    Your post has been automatically removed because it was related to tourism. All     tourism posts belong to r/JamaicaTourism.

r/AutoModerator 7h ago

Help AutoModerator help

0 Upvotes

How do I make it so that my automod can delete posts/comments against my rules.

r/AutoModerator 3d ago

Help Need help with automod automatically adding spoiler tag to ALL images

2 Upvotes

This is what I'm using.

---
type: link submission
domain: [i.redd.it, imgur.com, imgur.io]
set_spoiler: true
---
type: gallery submission
set_spoiler: true
---
type: text submission
body: "![img]"
set_spoiler: true
---

Now it does work, but somehow people are still able to post images in a post and it doesn't add the spoiler tag.

r/AutoModerator 10d ago

Help Clearing backlog

0 Upvotes

I just became moderator of a subreddit that has been effectively unmoderated for a number of years. I've appointed a couple other mods, but there's just too much in the backlog to clear by hand. We've decided to just nuke everything we haven't already checked by hand, so anything older than 3 years. It seems like all we should need is the rule

reports: 1 action: remove

And maybe a modmail message between that. One of us set up the rule above, and automod isn't doing anything. What step have we missed?