/r/AutoModerator
Important announcements, helpful tips, and discussion regarding AutoModerator.
What is AutoModerator?
AutoModerator is a highly customizable moderation bot. It monitors new and edited submissions and comments in your subreddit and acts on them as needed.
What can AutoModerator do?
AutoModerator is commonly used to:
PLEASE READ
AutoModerator does not remove or report content by moderators by default, so test your conditions with a non-moderator account or add "moderators_exempt: false"
Get Started
/r/AutoModerator
Hi,
In my subreddit we want to block everything for review that contains karma and free, but the current code blocks everything that contains karma or free.
type: submission
body (includes-word): ["free", "karma"]
action: filter
modmail_subject: "Post flagged for restricted terms"
modmail: |
Your submission has been flagged for containing restricted terms and has been sent to the moderators for review. Discussing karma-sharing subreddits is against Reddit's Terms of Service (ToS) and is not allowed on this subreddit. Please refrain from such discussions in the future.
Currently having an issue with the following code:
# Title Formatting
type: submission
~title (regex): ['(1[89]|[2-9]\d)*\s*\[([TFMG]|NB)4([TFMGA]|NB)\]']
action: remove
action_reason: 'Incorrect Title Formatting'
priority: 85
The code should force submission titles to have a numerical age between 18 and 99, and also require a gender tag between square brackets. However, it isn't removing submissions that lack an age. I'm sure it's just some slight formatting thing but I'm having trouble seeing it. Thanks!
I have an image filter setup for reddit image posts. However, some posts are submitted as galleries, they link to old.reddit.com. Is there a way to filter there?
I'd also be interested in filtering image links within the body of posts. These: https://preview.redd.it/
I currently filter link submissions for "i.redd.it" and I'm not sure this will catch "preview.redd.it" in the body
Hi,
In my subreddit AM is making an automatic comment on each submission, is there a way that automod makes the comment pinned / stickied?
I have a question regarding AutoModerator functionality on Reddit. I'm curious if it's possible for AutoModerator to automatically pin a comment that it posts upon submission of a post. Essentially, I'm wondering if AutoModerator can pin its own comment as soon as it's posted.
I've been exploring ways to streamline moderation tasks, and this feature would be incredibly helpful if it's feasible. Any insights or experiences with this would be greatly appreciated.
Thank you in advance for your help!
Hi,
Right now for a sub, I am using automod and writing rules using the following syntax, but due to many rules and filters it's getting clumsy and difficult. I wanted to know can automod rules be written on more than one page.
Current Syntax
Rule 1
---
Rule 2
---
Rule 3
I'm a moderator for an english-language community, in a country where english is not the primary language spoken. One of the rules in our sub is that all posts and comments must be in english.
In order to achieve that I've got a regex that matches on a couple of dozen words that are the most popular/used in the primary local language, and any match gets the post or comment removed.
Unfortunately the upshot of that is that if someone is trying to be helpful and wants to explain what a word or phrase means, they can't put that word or phrase into the text alongside its translation.
I'd like to change the filter so it would allow the post or comment if:
...the first would be doable I think with some changes to the regular expression filter, but how would I go about doing the second? Is it even possible?
I want to append the time a user has been on the sub represented by an emoji. I don’t want the current flair to be removed. Just append. For example “ 🐠 | existing flair”
Maybe everyday the mod updates everyone or when they post or comment it checks if a diff emoji should be applied.
I want to add an auto moderator comment when certain flairs are posted but I can’t seem to get it right and gives me errors. Does anyone know the code for these types of comments?
I need a automod rule that sends a modmail every time a certain word is mentioned. in the automod library I can only find a rule that sends a modmail every time a keyword is mentioned in the title, but I need a rule that sends a modmail even when a keyword is mentioned in a comment or the body of a post. can someone help me out?
This was what we had originally:
Author:
name: [exampleuser]
action: filter
action_reason: Restricted Users [{{match}}]
edit: for clarity
I’d like to remove post from anyone that has posted within 24 hours (I want to only allow 1 post every 24 hours) and send them a message telling them why it was removed.
Hi, so I tried to let automoderator to delete any post with account that under 40 karma.
But AM keeps deleteing any comments with low karma even if it was 20 Karma. I want AM to just delete any post with account that are less then 12 days old.. not comments.
So, what I want from the AM TO NOT DELETE any comments no matter how much karma they have. I only want them to delete post that under 40 karma and less then 12 days.
Any help?
Hey All,
I've just had a mad rush of people come into my server and post OnlyFans links and I had to scramble to ban them all.
Is there a option on AutoMod to delete them?
I’ve set the following automod script up on one of my subreddits to try to only allow link posts with specific URLs:
---
### Section - Domain Whitelist
type: link submission
moderators_exempt: false
#moderators should be exempt in production but non-exempt when testing (change the above line to true in prod)
~crosspost_id (regex): ['\w+']
~domain+body: [9to5mac.com,appleinsider.com,tmo.report,apple.com,macrumors.com,engadget.com,techcrunch.com,redd.it,reddit.com, imgur.com, imgur.io]
action: filter
action_reason: "Domain not in whitelist"
message_subject: "Domain not in whitelist"
message: |
Hello {{author}}, your [link submission]({{permalink}}) was removed because it goes to {{domain}}, which is not in our whitelist. If you wish to add the link to our white list, please reach out to our mod team, by sending a mod message.
---
However, it keeps incorrectly flagging image posts as not being on the whitelist. Does anyone know what might be causing this?
I just created a subreddit and I want to change the blue icon. Tapped on to change community icon and I changed it but it doesn’t show up. It is still the blue and white one. Is there another way to change it or will those who visit see it. Please help
I got this piece of code:
type: submission
and would like to comment with a link to a sticky post.
I know this is possible, cause I found this piece of code:
r/SUBREDDIT/about/sticky?num=1
and
r/SUBREDDIT/about/sticky?num=2
but IDK how to implement it. Could you gimme a hand?
Best,
Sky
Please Help!
Too many Subredditors are submitting posts / comments without reading the rules.
It is so horrible to have to manually remove these rule violations over and over.
I need help with an Automod that reminds everyone to read the rules.
Is it possible to do this as they prepare their submission(s) or after it is submitted?
I'm a novice and trying to learn more about this feature to assist with Subreddit moderation duties.
This is what I need it to say:
All responses you will receive are from your fellow Subredditors.
Before contributing a post / comment? Please review the SSDI_SSI Subreddit Rules to ensure you are cognizant of the rules relevant to this Subreddit.
Thank you
Every single time I post a comment, I get a notification that my post in r/tearsofthekingdom has been removed because my account is too young. However, I never even visit that sub Reddit, and certainly never post on it. This issue persists after deleting my old account and after changing the password on this one. Is this a known bug? Has my account been hacked?
Hi.
We run a curated sub. (We typically get on average about 3 posts a day.) We have been adding a sticky comment to every post to immediately notify OP that says "all posts are held for moderator review". We now are switching to a message, to keep the sub cleaner.)
Every post also gets in-sub karma ranking flair assigned to help us spot the newcomers and our best contributors.
We'd like to exempt mod sticky posts from the automod comment or message.
Since moderator exempt is the default why do our sticky posts by a mods trigger an automod curated comment/message? Do we need to add "moderator_exempt: true" to each flair/remove rule?
question is in the title. i'm just wondering if automod can do that.
type: submission
author:
has_verified_email: true
comment: |
Hi, /u/{{author}}!
welcome and thank you for having a verified email text
comment_stickied: true
author:
has_verified_email: false
action: remove
comment: |
Apologies /u/{{Author}}
rejection text
comment_stickied: true
action_reason: "user does not have verified email"
modmail_subject: "Attempted Post: User does Not Have a Verified Email"
modmail: "The above {{kind}} by /u/{{author}} has been removed, due to * No Verified Email *"
I'd like to have a CSS class on a flair for Old Reddit but clear it if you add an emoji to it so the emoji will display. Unfortunately, the CSS class isn't going away, although the emoji is being added and is visible on New Reddit.
I would like to not create new templates for every flair I have without CSS classes if possible...
# Grant jailbreak to user flair
type: comment
body (includes, regex): '!jailbreak (RageBreak)\Z'
author:
~flair_text (includes): [':', '(']
flair_template_id:
- 1a521f02-7373-11e4-951e-12313d15fc2c # iPhone 4, no jailbreak
overwrite_flair: true
set_flair:
text: "{{author_flair_text}} :{{match-2}}:"
template_id: "{{author_flair_template_id}}"
css_class: ""
moderators_exempt: false
priority: -2
comment: "Congrats! You have been granted {{match-2}}."
---
We require user flair for commenting, and I was hoping someone could help me with automod code to automatically assign user flair to the unflaired, without changing the users who have flair.
Thank you in advance :)
Hi sorry if it was a newbie question I am completely new to moderating and like to do the same like this NSFW sub doing but with few extra tweaks.
I want to know how AM extract the title inside [] or {} to hyperlink.
and also help me with Flair
Say if a user post with FlairA I want AM to do something like this domain1.com/username
where username is extract from the title inside [] or {} and with FlairB to domain2.com/username and so on with FlairC etc,.
Thanks in Advance!
I'm trying to create a community for my app by requiring new users to join our subreddit to receive an invitation code for the app.
To do this, I want to make our subreddit private but still accept all users who request access. How can I set this up?
Does anyone know a way of how the Automod can detect if a new post contains '©' in the body and if it does, automatically sticky the post?
We have certain keywords set up so that if they’d typed they need to be approved by moderators before going up. We want all conversations about a certain topic to happen in a megathread.
We have the megathread recurring every week with its own flair. Any code for this?
Below is the config i tested out, and it works to allow posts starting with
This [30] [M4F]
But not this [30/32] [MF4M]
OR [30/32] [MF4MF]
Is there an easy tweak to allow for the couples looking for singles or couples to post?
Thanks for the help! - I haven't attempted to enforce the location yet. That's a problem for tomorrow me, unless someone knows of an easy fix.. :)
---
type: submission
~title (regex): '(?#Age)\[(1[89]|[2-9]\d)\] (?#R4R)\[([MFTA]|NB?)4([MFTA]|NB?)\]'
message: |
Your post was removed because the title must be in this format:
[Age] [R4R] [Location] - Your Title
For example: [32/35][FM4M][Austin, TX] - Professional couple looking for an experienced single guy.
action: remove
action_reason: "Wrong title format"
---
Hi,
I want AM to flag crossposts to my sub that originate from a particular sub. (Crossposts from there have flooded the sub before.)
I have the following config in my AM:
# Filters crossposts from particular subs
type: crosspost submission
crosspost_subreddit:
name: ["XXXXX"]
action: filter
action_reason: Crosspost from {{match-crosspost_subreddit}}, pls review. No more than 1/day
comment: Your {{kind}} has been removed because crossposts from /r/{{match-crosspost_subreddit}} have been too frequent to /r/{{subreddit}} and now require manual approval. Please be patient. Your post will be reviewed in due time.
The filtering works great, but the {{match}} doesn't. I get literally "{{match-crosspost_subreddit}}" as the report reason in my mod queue, and in the comment that AM posts to the crosspost.
Where did I go wrong?