/r/AutoModerator

Photograph via snooOG

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:

  • Enforce title formatting and other subreddit-specific posting rules
  • Detect and flag offensive, inappropriate, or rule-breaking content based on keywords/phrases
  • Automatically remove posts from specific users and/or websites from your subreddit
  • Post regular community discussion threads
  • Alert subreddit moderators if certain types of content are posted
  • And much more!

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

16,551 Subscribers

1

Need some help with an automod code

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.
2 Comments
2024/03/28
06:07 UTC

1

Age and gender tag issues

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!

0 Comments
2024/03/28
01:36 UTC

1

How to filter old.reddit image galleries

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

6 Comments
2024/03/27
23:53 UTC

1

Can automoderator pin a comment posted by automoderator?

Hi,

In my subreddit AM is making an automatic comment on each submission, is there a way that automod makes the comment pinned / stickied?

3 Comments
2024/03/27
20:04 UTC

1

Can AutoModerator Automatically Pin Its Own Comments Upon Submission?

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!

3 Comments
2024/03/27
20:03 UTC

1

Can automod rules be written on more than one page

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

2 Comments
2024/03/27
16:13 UTC

2

Can automod act on a percentage of word matches?

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:

  • Any disallowed word or phrase was wrapped in double-quotes, or was part of a sentence wrapped in double-quotes; AND
  • The number of disallowed words in the body text was less than 10 percent of the total number of words present.

...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?

1 Comment
2024/03/27
08:16 UTC

0

Anyway to get automod to append to an existing flair.

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.

2 Comments
2024/03/27
05:41 UTC

0

Need help with coding

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?

3 Comments
2024/03/27
01:30 UTC

1

automod rule that sends a modmail every time a keyword is mentioned

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?

3 Comments
2024/03/26
20:03 UTC

1

Coding to make certain users comments go straight to ModQue. Previous coding stopped working.

This was what we had originally:

Author:

      name: [exampleuser]

action: filter

action_reason: Restricted Users [{{match}}]

edit: for clarity

27 Comments
2024/03/26
19:27 UTC

1

Need help making an automod to remove posts

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.

3 Comments
2024/03/25
23:39 UTC

2

How can I let AM to not delete comments with < 0 karma

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?

17 Comments
2024/03/25
15:36 UTC

1

How do I get AutoMod to delete OnlyFans links

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?

2 Comments
2024/03/25
00:31 UTC

1

Domain whitelist rule not working

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?

2 Comments
2024/03/24
22:19 UTC

0

Help to change sub logo

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

3 Comments
2024/03/24
19:27 UTC

2

Automod commnt pointing to a sticky post

I got this piece of code:

type: submission

title (includes-word): ["Blah", "halB"] action: remove moderators_exempt: false comment: | blah blah blah

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

2 Comments
2024/03/24
13:50 UTC

2

Need assistance with an Automod statement that will remind Subredditors to read the rules

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

6 Comments
2024/03/24
00:26 UTC

0

Possible Auto Mod Bug?

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?

7 Comments
2024/03/22
18:17 UTC

1

Sticky Posts - How to Remove Automoderator's Comment/Message response?

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?

1 Comment
2024/03/22
13:38 UTC

1

can automoderator change the post flair on a submission if a certain amount of likes, comments or alternatively a certain amount of reports is reached?

question is in the title. i'm just wondering if automod can do that.

3 Comments
2024/03/22
04:47 UTC

1

question for submission check: is it possible to set up two different outcomes depending on whether the user has verified email? and only for posts not comments

Automod post welcome (Marks post with username)

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 *"             

7 Comments
2024/03/21
19:28 UTC

1

How do I clear the CSS class of a templated flair?

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}}."

---
2 Comments
2024/03/21
16:06 UTC

1

I need help with requiring user flair

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 :)

16 Comments
2024/03/21
15:21 UTC

0

Need help with AM to do something like this

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!

8 Comments
2024/03/21
08:01 UTC

3

Is it possible to automatically approve requests to join my subreddit?

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?

7 Comments
2024/03/20
20:27 UTC

4

Detecting an ascii symbol in a post and pinning that post?

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?

2 Comments
2024/03/20
11:26 UTC

2

Bypass keyword filter on megathread

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?

2 Comments
2024/03/20
03:30 UTC

1

Need help with automod title format enforecement of r4r sub

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"

---

3 Comments
2024/03/19
19:22 UTC

2

Why can't I get {{match}} to work?

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?

5 Comments
2024/03/19
14:42 UTC

Back To Top