/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,528 Subscribers

0

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 40 days.

Any help?

16 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

5

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

0

Website that makes typing emojis easier

I found this site that converts all unicode characters (which automod cant read) in a text to emojis. useful for copypastas and stuff lol

2 Comments
2024/03/18
17:35 UTC

0

is there anything wrong with this?

Im trying to make automod respond to anyone that says "what" with "WHAT???". i also want to make sure it only does this for the word "what" by itself, not including stuff like "somewhat"

moderators_exempt: false

type: comment

body (regex): 'what$'

comment: WHAT???

^this is what i have right now but it doesnt seem to do anything

moderators_exempt: false

type: comment

body (includes-word): ["what"]

comment: WHAT???

^i tried this before too and it didnt work either. anyone know how to do this??

3 Comments
2024/03/18
13:56 UTC

1

Trying to set up a filter for #location as a requirement, with any word possible as the location

This was what we had so far, and it kicks back any posts. Tried looking around quite a bit, but haven't had any luck. Any help is appreciated!

---

type: submission

~title (starts-with): ["[TAG]"]

action: remove

action_reason: "Not following Submission Guidelines"

message: |

Your post has been removed because it does not start with a # followed by your location.

Please edit your post accordingly and submit again.

moderators_exempt: false

3 Comments
2024/03/18
03:02 UTC

0

I want to combine two rules

I want to combine two rules I am not sure if auto mod supports (if/else). Please tell me how can i do it.

if

type: submission

url+title+body: ["tickets" , "ticket", "pass", "passes"]

author:

account_age: '< 14 day'

link_karma: '< 100'

comment_karma: '< 100'

satisfy_any_threshold: true

action: remove

comment: |

Hello {{author}},

Your post about reselling tickets (scalping) was removed because it involves a financial transaction. Unfortunately, your account doesn't meet the minimum requirements to post about such transactions.

else

type: submission

priority: 2

url+title+body: ["tickets" , "ticket", "pass", "passes"]

action: filter

comment: |

Hello {{author}},

As your post was about ticket/passes resale (also called scalping ), please copy the below block and fill in details and update them in your post:

Name of event:

Count of tickets being sold:

Category or seating of ticket (front, backstage, last, Auditorium/Hall, seating):

Date & Time:

Venue:

Price per ticket:

Once this info is posted, send a modmail for getting your post approved.

2 Comments
2024/03/17
16:01 UTC

1

How do I make it ignore capitalization

Idk anything about automod coding but in other languages theres stuff that makes it ignore caps. for example since my nickname is Glowoai then this: if lower.nickname == "glowoai": print("hi") would still print "hi" because the use of "lower." made it ignore the capital g. How would I do this with automod? I have a list of words but only want some of them to be like this

4 Comments
2024/03/17
06:20 UTC

0

Auto-approve my own posts?

I have been through a few different scripts, and for whatever reason (and I'm sure I'm missing something basic), I can't figure out how to use automod to approve my own posts. I like to schedule posts, and I'd like those posts to be auto-approved in case I'm not available to hit the actual button. Thanks in advance!

12 Comments
2024/03/16
14:26 UTC

0

AutoMod settings edit won't save

I have verified that I can create and save AutoMod settings with just the first comment line. However, when I try to add the following check/action it won't save. What am I doing wrong?

#AutoModerator settings
---
#Enforces post title tags denoting location
~title: [‘[AL]’, ‘[AK]’, ‘[AZ]’, ‘[AR]’, ‘[CA]’, ‘[CO]’, ‘[CT]’, ‘[DE]’, ‘[DC]’, ‘[FL]’, ‘[GA]’, ‘[HI]’, ‘[ID]’, ‘[IL]’, ‘[IN]’, ‘[IA]’, ‘[KS]’, ‘[KY]’, ‘[LA]’, ‘[ME]’, ‘[MD]’, ‘[MA]’, ‘[MI]’, ‘[MN]’, ‘[MS]’, ‘[MO]’, ‘[MT]’, ‘[NE]’, ‘[NV]’, ‘[NH]’, ‘[NJ]’, ‘[NM]’, ‘[NY]’, ‘[NC]’, ‘[ND]’, ‘[OH]’, ‘[OK]’, ‘[OR]’, ‘[PA]’, ‘[RI]’, ‘[SC]’, ‘[SD]’, ‘[TN]’, ‘[TX]’, ‘[UT]’, ‘[VT]’, ‘[VA]’, ‘[WA]’, ‘[WV]’, ‘[WI]’, ‘[WY]’, ‘[AS]’, ‘[GU]’, ‘[MP]’, ‘[PR]’, ‘[VI]’, ‘[UM]’, ‘[MH]’, ‘[FM]’, ‘[PW]’, ‘[non-US]’]
action: remove
action_reason: "Post title missing required location tag"
comment: "Comment text."
---

edit: Repeated edits until I eventually got the formatting to display correctly. :/

8 Comments
2024/03/16
13:47 UTC

0

How do i make a code that removes a post + how to make that automatic message that comes when you make a post?

How do i make a code that removes a post + how to make that automatic message that comes when you make a post?

9 Comments
2024/03/16
11:39 UTC

0

How do I write a script that removes any post title or comment that has the words(“dm”, “looking for”, “searching for”) that ignores punctuation?

So “sending you a dm!“ with the exclamation point, should be removed.

3 Comments
2024/03/15
23:17 UTC

1

Two questions: 1. How do I write it so that auto-mod replies to comments that have a certain link? And 2. Is there a way for auto-mod to carry out actions on top of filtering posts?

1)My sub is for a game that shares links for giving each other energy. That link is on reddit's banned list I believe, (aliexpress), so these comments always get automatically hidden. I encourage qr code image sharing instead, but sometimes not every reads the instructions. I am trying to write it so that auto-mod replies to these comments with the instructions, not remove them. I was using the library to help me write it, however everytime I try to use the "domain" or "url" commands I get an error message. So I'm currently using

type: comment

body (includes): ["http", "https"]

comment: |

But obviously this means auto-mod responds to any and every link so its not ideal.

Is the error message occurring because the domain is on reddit's banned list? I want it to be just for "a.aliexpress .com, aliexpress .com" links

  1. Second question - I use auto-mod to filter submissions so I can manually approve incoming posts. Is this what's preventing other actions working? Because I also have a few flair prompt action set up, but noticed they only work on my posts, and not on submissions that get filtered.
4 Comments
2024/03/15
14:31 UTC

0

How can I make the automod to have a random chance to respond to a specific trigger word ?

Is there a way to make the automod comment when it spots a specific word with let's say 50% chance ?

3 Comments
2024/03/15
11:02 UTC

Back To Top