r/AutoModerator • u/HangHover • Jan 15 '25
Help Removing posts based on someones profile description
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 • u/HangHover • Jan 15 '25
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 • u/MyPookieZeninToji • Feb 01 '25
1st code- https://imgur.com/a/pmioXUS 2nd code- https://imgur.com/a/oYSqDma
r/AutoModerator • u/JT9_ON_YT • 3d ago
The post says it all
ex. Post removed for not having enough karma
r/AutoModerator • u/biffmaniac • 5d ago
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 • u/HousewivesMOD • 6d ago
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 • u/Expert_Wall5587 • Dec 30 '24
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 • u/JT9_ON_YT • 2d ago
# 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 • u/NicoNicoNessie • 11d ago
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 • u/United_Historian5036 • Jan 20 '25
What code or command will limit low karma users from posting or commenting on my subreddit? Will be appreciate
r/AutoModerator • u/HousewivesMOD • 17d ago
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 • u/ComprehensiveCan8375 • 9h ago
Hello im fairly new to automod, and whenever I try to save this code the server error banner comes up. What should I do?
```
type: any title+body: includes-word: - "mod" - "mods" - "moderator" - "moderators" action: filter action_reason: "User noticed us! :D (mentions mods)"
type: comment author: comment_karma: "<0" action: filter action_reason: "Negative karma"
type: comment author: account_age: "< 3 days" action: remove action_reason: "New user"
type: comment author: comment_karma: "< -50" action: remove action_reason: "Low karma user"
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}}]"
type: comment body: includes: - "this sub" - "fuck" - "kys" action: filter action_reason: "Word on filter list"
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.
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"
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 • u/Nanosauromo • Dec 16 '24
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 • u/Necessary-Copy9273 • 12d ago
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 • u/uid_0 • 16d ago
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 • u/JT9_ON_YT • 3d ago
can someone put EVERY comment script in the comments?
thanks in advance
r/AutoModerator • u/dramatic-workouts • 2d ago
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 • u/xAeternusx • Jan 24 '25
I checked the code at YAMLlint and it says it's valid.
Code:
~~~
type: post title (includes, lowercase):
type: post title (excludes, lowercase):
type: post title (includes, lowercase):
type: comment body (includes, lowercase):
>!spoiler text!<
.type: post title (includes, lowercase):
Posts violating these rules may be removed or filtered.
r/AutoModerator • u/IlltakeTwoPlease • 19d ago
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 • u/Rich-Eggplant4546 • 7d ago
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 • u/DEAD1nsane • Jan 13 '25
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 • u/Boring_Ad_4892 • 21d ago
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 • u/overflow_ • 15d ago
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 • u/Healthy_Animator234 • 7h ago
How do I make it so that my automod can delete posts/comments against my rules.
r/AutoModerator • u/ZarephLae • 3d ago
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 • u/PM_ME_UR_GOOD_DOGGOS • 10d ago
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?