/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

18,309 Subscribers

0

Desperately need help making this automod

Have tried, but failed. Tried asking in this sub before, but need more help.

We really need an automod to remove comments from users with flairs "parent" or none when they comment on posts flaired for ECE Professionals Only. Could anyone help??

Example https://www.reddit.com/r/ECEProfessionals/comments/1h50w6t/parents_showing_up_to_breastfeed/

3 Comments
2024/12/03
02:01 UTC

1

Automod removal reason comments got removed

I removed two comments in my subreddit for the same reason and a few minutes later the automod comments showed up in the queue and were just marked as "removed"

No reports showing, nothing in the subs mod log, nothing. I have absolutely no idea what is going on with it. Its literally for a rule that is about not discussing other subreddits (because drama)

I don't understand why it wouldn't at least show up in the mod log if Reddit did the thing where it randomly decides something is bad for some reason

0 Comments
2024/12/02
21:25 UTC

5

Something deletes all my posts in my own subreddit. It's private and only for me and co-workers. Can I use automod to allow everything and stop the automatic deletion?

I made a small private subreddit for myself and close co-workers. We will only be like 10 or less people. Right now I'm trying to make the setup of the subreddit work.

The issue is that when I make any post in the subreddit, it gets automatically deleted.
I turned off all filtering, there is no automod, I added myself as a approved user, I approved my posts.
The subreddit still automatically deletes my posts there.
I havent changed anything in default automod.

Why are my posts deleted in my own subreddit automatically?
Can I use automod to stop this and approve all posts? I don't see a single reason why I would want our own subreddit to delete mine or any other co-workers posts.

What should I change in automod?

Bya y'all!

5 Comments
2024/12/02
21:04 UTC

3

Auto moderator to remove posts that do not ask the question in the title?

The communities I run aren't REQUIRED to ask questions in their posts, but when they do- it's required that they state the question in the TITLE. Yet we still get a lot of "I have a question to ask." titles still.

1 Comment
2024/12/01
21:29 UTC

5

Duplicate Photos

Is there a way to have the automoderator check to see if the same photo is submitted twice by a Redditor?

If so can it then be flagged and alert the moderators to take some action?

4 Comments
2024/11/30
21:01 UTC

1

How do I auto-remove posts with these kewywords in the title( weather now, climate now etc) And pin a comment giving them a thread link, This our uutomod code, please help?

# Rule 1: Sticky comment for specific weather-related submissions
type: submission
comment_stickied: true
title+body (regex): ['(the weather during|climate now|weather now|weather is)']
action: remove
comment: |
Please use the following link for all queries related to weather:

- [December Weather Megathread](https://www.reddit.com/r/pondicherry/comments/1gr972k/megathread\_visiting\_during\_december\_and\_new\_years/)

---

# Rule 2: Sticky comment for general submissions
type: submission
comment_stickied: true
comment: |
For more info about food, travel, accommodation, and meeting new people:

- [Wiki](https://www.reddit.com/r/pondicherry/wiki/index/)
- [Pondicherry Discord Server](https://discord.gg/XxvbbjEQDw)
- [pondy.life](https://www.pondy.life/) by u/theyashbhardwaj
---

3 Comments
2024/11/30
12:46 UTC

1

How Could I Edit This Code To Enforce Specific Title Format?

Hey, myself & the team over on the subreddit we moderate are trying to figure out how to make the title formatted in a certain way and prevent incorretly formated posts from posting.

I made this using ChatGPT but it doesnt work:

---
title: "Enforce specific title format"
type: submission
action: remove
title: "^(\\d{1,3})\\s*\\[(F4(?:MF|FF|MM|MF)|FM4(?:F|M)|MF4(?:F|M))\\]\\s*#\\w+(?:\\s+.+)?$"
comment: |
    Your post title does not follow the required format. Please use the correct format:
    
    `<Age> [<Gender and Target>] #<Location>, <Title>`
    
    Allowed formats include:
    - `F4MF`, `F4FF`, `F4MM`, `FM4F`, `FM4M`, `MF4F`, `MF4M`, `FF4M`, `FF4F`
    
    Example: `25 [F4MF] #California, Looking for a new friends!`
---

What I am after:
Correct format of a posts title: Age [Gender and Target] #Location, Title

Example title:
25 [F4MF] #California, Looking for a new friends!

1 Comment
2024/11/30
11:15 UTC

1

How Could We Edit This Code To Work For Our Intended Purpose?

Hey, myself & the team over on the subreddit we moderate are trying to figure out how to make it so that if a post is out under 1 of our flairs, the title must be formatted in a certain way.

Script:


type: submission
~body+title (includes): ['word1', 'word2']
action: remove
message: |
    Words to the person. There must be
    four spaces at the beginning of each line in this message
---
type: submission
body+title (includes): ['[ISO]', '[TR]'] 
action: approve

What we're after:

Example title: [ISO] Example text here, anything to be approved [TR] Example text here, anything to be approved

ISO & TR are abbreviations for In Search Of & Trading if it's relevant.

We've thought about taking this line from other scripts of ours (although we're unsure if it'd work/where to place it):

flair_text (includes-word): ["Our Selected Flair Name Here"]

Any advice is greatly appreciated! The script is the closest we can find to what we're after, although we're not sure if it'd work (the part about removing certain words isn't what we're after & we're unsure what to do with that part of the script)

Thank you!

2 Comments
2024/11/29
18:58 UTC

0

Sin moderación.

Hola, quiero publicar en mi perfil, pero sin tener que darle a aprobar aposta a cada publicación mía, sino que quiero que se publiquen automáticamente. ¿Cómo puedo hacerlo? Es decir, ¿cómo puedo publicar en mi perfil sin pasar por el filtro de moderación? Gracias.

1 Comment
2024/11/29
17:24 UTC

2

How do I access Automod in the ReRedesign of Reddit in mobile?

I can no longer access Automod, wiki pages in the redesign on Brave mobile. It seems to be accessable in old.reddit.com and it is insane that it's no longer possible now.

3 Comments
2024/11/29
12:38 UTC

2

Automod not filtering properly

Running into a weird situation with automod and I'm hoping maybe somebody can figure out what's happening.

A sub I help mod is trying to set up a new word filter in automod. It's just a copy and paste of other automod filtering we already use, with the actual terms being filtered changed. When we implemented it though, it's not actually filtering posts.

I took the code to a private sub I mod and did some testing, using the same code as well as verified code from other subs I mod, and nothing is working. With it happening across multiple subs the same way, it makes me thing Reddit issue.

Any audomod code that tries to filter/action is not working. Code that doesn't filter works perfect fine. For example, I have some code to comment a sticky with info but not filter the submission, and that works fine. As soon as I change it to filter the submission, it all stops working.

Here's a link to an image of the automod code we're using, which has been successfully used for years - https://imgur.com/a/0dPUXFL

Any ideas?

6 Comments
2024/11/28
21:42 UTC

1

Setting Up Automod or Bot to Recognize Images and Assign Correct Flairs

Hello everyone,

I’m looking for assistance with setting up a system for r/PrejacLevelTraining that can analyze the content of images in submissions and automatically assign the correct flair based on what’s in the picture.

Here’s the specific scenario:

  • The subreddit has flairs labeled "Level 1" to "Level 9".
  • These flairs correspond to what the person in the image is wearing (Level 1 - lightly censored images; Level 2 - heavily censored images; Level 3 - bikini, underwear, lingerie; Level 4 - women in dresses or skirts, etc.)
  • The goal is to create a bot or Automoderator configuration that can:
    1. Recognize the content of the image.
    2. Assign the appropriate flair automatically or fix the flair if incorrect one was assigned.

My Questions:

  1. Is it possible to achieve this with Reddit’s native tools, such as Automoderator, Automations or Comunity Apps?
  2. Are there any free, open-source image recognition libraries or APIs that can be integrated into a bot for this purpose? For example:
    • OpenCV (Computer Vision library)
    • TensorFlow or PyTorch models trained for clothing detection
  3. If not, how can I set up a bot that uses image recognition (e.g., through Google Vision, AWS Rekognition, or another AI tool) to analyze images and set the correct flair?
  4. Has anyone here implemented something similar using only free resources?
  5. Are there any ready-made tools, scripts, or frameworks that can help with this?

Requirements:

  • Free to Use: The entire solution should rely on free tools, libraries, or services. No paid APIs.
  • Image Recognition: The system should be able to detect clothing styles or attributes in the image.
  • Flair Automation: Once the image is analyzed, the system should automatically assign the corresponding flair.
  • Reddit Integration: Ideally, this solution would work seamlessly with Reddit’s API and require minimal manual intervention.

Additional Considerations:

  • If it’s not possible to automate the flairing process fully, I’d be open to suggestions for tools that can assist moderators in reviewing posts and assigning flairs manually.
  • I’m comfortable with setting up a bot or script if someone can point me in the right direction or share an example.

Any help, advice, or examples of similar projects would be greatly appreciated. Thank you!

1 Comment
2024/11/28
14:55 UTC

4

AutoMod Help - Remove Comment with Phrase Match

We are having a lot of spam from multiple accounts posting a similar phrase banned by our community rules.

Can someone help with an automod rule to ban comments that would match all of these samples. Wording is changed slightly due to the community I mod.

Phrase: red sky

  1. Look at the red sky.

  2. The Red Sky is beautiful.

  3. The RED SKY is uncommon.

  4. The Red .. Sky is my favorite. (any number of number letter/numbers between words.

So match the characters in any combination of upper and lower case letters with any combination of non-letters and non-numbers between.

As a bonus if you can provide a variant that matches any combination of characters between the two words. Yes I know it is dangerous but we might need to hit that extreme.

2 Comments
2024/11/28
06:39 UTC

4

Automatically removing sub-posts.

When people write a new post on my subreddit, there's an auto-moderator comment that comes right after their post. I'd like to be able to not have this show up in my mod queue when this is removed automatically, along with the post the person made because they had low karma, because it's clogging up 50% of my mod queue with things that are not really relevant.

How do I still filter the person's post without filtering the comment made by auto-moderator?

#

title: ["Looking for developer", "Looking for programmer", "Hire", "Hiring"]

action: remove

---

# Remove user posts if less than 10 karma, please don't change this it is needed to remove spam

type: submission

author:

link_karma: < 10

action: filter

comment: |

Your submission has been removed for having a negative karma.

report_reason: |

Low Karma

---

# Sticky comment on submissions

type: submission

comment: |

Make sure to read the rules in the pinned thread.

---

6 Comments
2024/11/27
17:03 UTC

0

why won’t it let me send any messages?

keep getting a message saying that i need to establish my account?? anyone know what to do

6 Comments
2024/11/26
21:49 UTC

1

I need help to set up AutoMod to comment with text and links to each post

Hello.

I found Automod, but I am not able to set it up to write a text in each post. I am on desktop.

Any help much appreciated, needless to say that I am not a tech expert.

10 Comments
2024/11/26
18:17 UTC

3

please check following code I keep getting error

# Rule 1: Minimum Account Age and Karma Requirement for Submissions

type: submission

author:

account_age: "15 days"

combined_karma: 6

action: remove

comment: |

Your submission has been removed because your account does not meet the minimum participation criteria:

- **Account Age:** 15 days minimum

- **Combined Karma (link and comment):** 6 minimum

Please engage more on Reddit and try again later. We look forward to your contributions once you've met the requirements!

---

# Rule 2: Minimum Account Age and Karma Requirement for Comments

type: comment

author:

account_age: "15 days"

combined_karma: 6

action: remove

comment: |

Your comment has been removed because your account does not meet the minimum participation criteria:

- **Account Age:** 15 days minimum

- **Combined Karma (link and comment):** 6 minimum

Please engage more on Reddit and try again later. We look forward to your contributions once you've met the requirements!

---

# Rule 3: Prohibit the Sale, Trade, or Giveaway of Illegal Items

type: submission

body (regex): "(active spores|psilocybin|psilocin|magic mushrooms)"

action: remove

comment: |

Your post has been removed because it mentions items that are prohibited in this subreddit. This includes:

- Active spores

- Psilocybin-containing items

- Other illegal substances

Please ensure all trades, sales, or giveaways comply with local laws and subreddit rules.

---

# Rule 4: Ensure Only Permitted Items Are Sold, Traded, or Given Away

type: submission

title (regex): "(grain spawn|substrate|liquid culture|non-active spores|petri dishes|agar|lion's mane|reishi|cordyceps)"

body (regex, does not include): "(active spores|illegal)"

action: approve

---

# Rule 5: Flag Posts Missing Item Details for Clarification

type: submission

title (regex, does not include): "(grain spawn|substrate|liquid culture|non-active spores|petri dishes|agar|lion's mane|reishi|cordyceps)"

action: remove

comment: |

Your post has been removed because it doesn't clearly mention the items for trade, sale, or giveaway.

Please revise your post to include details about the items you're offering or looking for. Refer to the subreddit's rules for allowed items.

---

# Rule 6: Prohibit Self-Promotion or Spam

type: comment+submission

body (regex): "(buy from my store|visit my website|exclusive discounts here)"

action: remove

comment: |

Your post or comment has been removed because it appears to be self-promotion or spam. Self-promotion is not allowed unless explicitly permitted by the moderators.

Please contact the moderators if you believe this is an error.

---

# Rule 7: Remind Users of Prohibited Items

type: comment

body (regex): "(can I trade active spores|any psilocybin here|illegal items allowed?)"

action: remove

comment: |

Your comment has been removed because it inquires about items that are prohibited in this subreddit.

Reminder: Selling, trading, or giving away **active spores or any illegal items** is strictly forbidden and will result in a ban. Please review the rules before posting further.

---

# Rule 8: Enforce Flair Requirement for Submissions

type: submission

link_flair_text (regex, does not match): ".+"

action: remove

comment: |

Your post has been removed because it does not have the required flair. Please add the appropriate flair to your post and resubmit.

---

# Rule 9: Ban Users for Repeated Violations

type: submission+comment

author:

submissions: 3 (removed, within 7 days)

comments: 5 (removed, within 7 days)

action: ban

comment: |

You have been banned from subreddit for repeated violations of subreddit rules. If you believe this is an error, please contact the moderators for clarification.

3 Comments
2024/11/26
14:17 UTC

3

Karma removal not working

Hey, sorry to post this again but I keep trying to make an automod that removes comments and posts from users that don't have enough karma on our subreddit. For some reason it just isn't working. I'm still able to comment on an alt account with 1 karma and nothing gets removed. What is going on?

even if i change "combined_subreddit_karma: '< 100'" to comment_subreddit_karma: '< 5'" It does not work

---
type: any
author:
    account_age: '< 10'
    combined_subreddit_karma: '< 100'
    satisfy_any_threshold: false 
action: remove
comment: Your post/comment was removed due to low karma.
---
3 Comments
2024/11/26
07:09 UTC

2

How can I get Automod to add a parameter to a link post?

When people submit links to our sub, I want automod to add ?affiliate=off to the end of the link. Can this be done?

5 Comments
2024/11/26
07:01 UTC

6

If OP does !lock, any way to prevent it from locking for them?

---
# "!lock" command for OP
type: comment
author:
    is_submitter: true
body: "!lock"
parent_submission:
    set_locked: true
---
#Auto comment by automod
    type: submission
    Moderators_exempt: true
    comment_stickied: true
    comment: |
        - This post has been locked.
---
# Moderator override to allow moderators to use the "!lock" command
type: comment
author:
    is_moderator: true
body: "!lock"
parent_submission:
    set_locked: true
---
# "!unlock" command for OP
type: comment
author:
    is_submitter: true
body: "!unlock"
parent_submission:
    set_locked: false
---
#Auto comment by automod 
    type: submission
    Moderators_exempt: false
    comment_stickied: true
    comment: |
        - This post has been unlocked.
---
# Moderator override to allow moderators to use the "!unlock" command
type: comment
author:
    is_moderator: true
body: "!unlock"
parent_submission:
    set_locked: false
---

is there anyway to set it so that OP doesn't get locked out of their own post after doing !lock command? so they can run !unlock if desired.

33 Comments
2024/11/26
04:15 UTC

2

Is there a way for automod to remove posts without notifying the queue?

Is this possible? I would like some code to be automatically removed without having it appear in the queue.

3 Comments
2024/11/25
21:35 UTC

1

How can I have automod remove a post if it contains a word but ignore the keyword if it is a part of a phrase?

For example, if I wanted to remove any post that has the word "image" but ignore the titles with "image unrelated" as long as the image is only used in the phrase.

4 Comments
2024/11/25
12:19 UTC

1

Post? or Comment

I have posted something and AutoMod has commented in it that the “thread or comment has been removed due to the submitter having lower than 10 karma to post on the subreddit” or smth like that.

Does that mean that the post was deleted?

4 Comments
2024/11/25
05:46 UTC

0

auto reply for my subreddit

title

I want a reply for automatically for certain questions.

5 Comments
2024/11/25
03:24 UTC

3

How to set up automod to only allow flaired users to write top level comments

Hi,

I need a script to prevent users with a specific flair "Layperson" from submitting top level comments on posts flaired "Flaired users only".

Can someone please help with this ? Thank you so much !

1 Comment
2024/11/24
01:55 UTC

5

configure auto mod to remove any posts/comments discussing prices

a subreddit that I moderate has a problem talking about prices which is strictly forbidden. of course I know there's gonna be ways users will work around automod... but I want it to work the best of it's ability for this!

https://www.reddit.com/r/AutoModerator/s/tP7CYJaM2r this is the closest post I was able to find for what I'm looking for I think? Except I believe that this is only for prices $30 or less per post context.

this is also what I have right now, but I don't believe it would work nearly as well as one similar to this link.


title+body: ["price", "prices", "cost", "money", "dollars", "euros", "dollar", "euro", "pricing", "$", "€", "£"] comment: "Your {{kind}} was removed because the discussion of prices is strictly forbidden on this subreddit. If you believe this was done in error, please contact us in ModMail & make sure to provide the link to this post so we can manually review it. Thank you!" action: remove

(PS I know that's not formatted correctly. I am just don't feel like going in adding the indents for an example)

I've searched all the wikis and stuff, and I can't find anything on it. Grrrr!

9 Comments
2024/11/23
21:08 UTC

2

How do i set up an automod that approves posts so i dont have to?

I run a super small (Like 10 member) subreddit called r/ProjectHotel Most of the time i forget to check my approval and find two are three posts that are 14 days old i havent approved. I dont have a lot of friends or mutals to help mod this place. So im wondering if there is a way to automod this?

8 Comments
2024/11/23
18:13 UTC

2

Is it possibly for an Automod trigger that only happens for a specific flair

Take your basic Automod that triggers when you say that word in a post/comment

body+title: “test” comment: “test”

And now have that automod only work if a certain flair is being used

1 Comment
2024/11/23
04:55 UTC

2

How to setup automatic archiving and for older posts?

I have a subreddit that needs archiving before I purge the old posts.

1 Comment
2024/11/23
04:20 UTC

3

Title+Body too short, is this possible?

My current script.

type: submission
body#length (regex, full-text): '.{,10}'
moderators_exempt: false
action_reason: |
Your body is too shorter than 10 characters. Please also describe what you're post is about, or it will be removed by the mod team, at a later date!
action: remove
comment: "Your body is too short"

However, I seen posts in my community that have a great long title, and I'm fine if they leave their body blank.

So, is it possible to add the length of the title & body together, and if the total combo is below 10 characters, then remove it.

1 Comment
2024/11/23
02:35 UTC

Back To Top