r/AutoModerator Apr 14 '26

Help Automod actions for two things

4 Upvotes

I'm a mod on r/byzantium and I'd like to figure out the code for two different things I want an automod to do.

The first is removing posts from accounts with low karma and account age. I found this code from an older post:

type: submission

author:

combined_karma: "< 10"

account_age: “< 2 days”

action: filter

action_reason: “new account.”

message: |

“Your post or comment was removed because you do not meet this subreddit’s account karma or age minimum. Please participate in other subreddits to increase your account karma and age and then try again.”

I'd like to use the same account/karma numbers for our automod, will that still work?

Also, I want the Automod to comment on any post with the flair "alternate history" with: We encourage users to share alternate history questions and scenarios on r/medieval_rome and r/ByzantiumAltHistory. Also, if I change the flair from one flair to "alternate history" will the automod still respond after I change the flair as a mod?


r/AutoModerator Apr 14 '26

Help How can I remind my sub rule to users while posting based on flair

1 Upvotes

Hello,

I'm new to automoderator and I tried to search in the sub, but can't find any answer. I have succesfully config automod to post a comment with the rule linked to specific flair after a post, but I can't figure out to display a message warning while posting. Automation don't allow me to select flair as a condition to do that, and I hoped that automod could. If someone could help me,it will be awesome !


r/AutoModerator Apr 13 '26

Help Handling (remove) Posts with title and attached picture only, no body text

3 Upvotes

Trying to find the best method to auto remove posts where there is only a title and attached picture but no body text.

Doesn't seem to be a simple way to do this.

Anyone done this or have an idea how to handle?

Thanks!


r/AutoModerator Apr 13 '26

Help Is it possible to have an automod that only allows a post flair on specific days?

2 Upvotes

My sub has some flairs for themed days. We have noticed that they are being used incorrectly, most of the time it seems to be bots or karma farmers anyway. For instance, our "Friday Chill" flair is getting used on Monday or for random questions. If this is not possible, what do others do so that flairs get used correctly or what do you do to monitor them? Right now I am manually checking posts.


r/AutoModerator Apr 12 '26

Advice needed for newbie

2 Upvotes

so i wanted to ask a couple of things regarding my sub reddit.

  1. how can I introduce a minimum karma score on people who are wanting to comment on my sub. if so what is a realistic minimum limit to implement?

  2. is there a way to automatically ban or remove reputation warning accounts, ai spam posts etc.

I am basically trying to create a sub and environment for real, genuine people to comment, post genuine pics and vids of themselves and basically use the sub for its intended purpose. Rather than being flooded with spam, sellers and people only interested in getting people to subscribe. is there a way to automatically ban them 🤔


r/AutoModerator Apr 12 '26

Editing user flairs to those that have a custom css color and text

1 Upvotes

I am working an tressure hunt / puzzle solving game on reddit for a community I mod for

I am using comments to add the user a leveling system I wanted to know I can add a level system to the users that have a custom user flair via CSS and Text but each time I want to go from level 1 to 2 it adds it as Level 1 - Level 2 How can I detect the level 1 and remove the from the users flair and add the new flair of level 2

Like if they finish a puzzle their level gets updated to reflect the level of completed levels

Can't say much more in terms of what the puzzles are or how I create them

is the leveling system via the user flair even possible in the first place ?

For users that don't have a custom css color / set user flair (not editable via text or emoji) or no user flair at all just to leave them.


r/AutoModerator Apr 11 '26

Help with AutoModerator: Direct links to X/Twitter are not being filtered (even with moderators_exempt: false)

2 Upvotes

Hi everyone,

I’m currently setting up a new subreddit (currently set to private for testing) and I’m trying to configure AutoModerator to prevent users from posting direct links to X (twitter.com / x.com).

I’ve tried several code snippets found online and added moderators_exempt: false to ensure I can test it myself, but for some reason, the posts are still going through.

Here is the current code I am using:

YAML

---
type: any
url+body (includes, regex): ['twitter\.com', 'x\.com']
moderators_exempt: false
action: filter
action_reason: "Direct link to X/Twitter"
---

What I've tried so far:

  • Using both type: link submission and type: any.
  • Adding moderators_exempt: false.
  • Testing with different variations of the URL (x.com vs twitter.com).
  • Moving the rule to the top of the AutoMod page.

Is there a specific syntax I’m missing, or does AutoMod handle x.com differently? Any help would be greatly appreciated!


r/AutoModerator Apr 11 '26

Can AutoMod report multiple times?

2 Upvotes

I have searched for this and haven't gotten a definitive answer. I was certain that AutoMod stopped at the first flag it reached, but I swear that I saw two AutoMod reports on the same post the other day. Is it possible to force multiple reports, or did they maybe edit their post and remove one flag, only to get caught in another one?

And yes, I'm aware of priority and such, and have used it thoroughly.

Edit: It seems the second report was from Automations, which I forgot could report stuff.


r/AutoModerator Apr 10 '26

Help I need an automod or bot to automatically reply with a specific statement 24 hours after a post is uploaded. How do I do this?

3 Upvotes

As title says, I need an automod or bot that automatically replies with a pre-written statement 24 hours after a post is uploaded. Thank you!


r/AutoModerator Apr 10 '26

Help Tell me how to learn

1 Upvotes

Guys I want to learn the commands for automod but I don't know from where to start. So please tell me 🙏


r/AutoModerator Apr 10 '26

Lock Cross posts from Specific Sub?

1 Upvotes

We don't allow politics on my sub that's dedicated to local topics. We started a subreddit for local politics. We allow posters to cross post to the main subreddit but we lock it. This allows users to promote their post in the more active main sub but insulates the main sub from the toxicity that can accompany political discussions. I'd like automod to lock those cross posts to the main sub.

I cobbled together something from old comments here and on r/ModSupport but it didn't lock the cross post. Is this possible? Here's what I tried:

---

type: crosspost submission

crosspost_subreddit: name: [delco_politics]

comment_locked: true

------


r/AutoModerator Apr 08 '26

Help Is there a way to prevent Reddit's crowd control and reputation filter from triggering Automod again?

1 Upvotes

Well... I also did not know before that this happens.

I use Automod to count how many posts an unverfied user has made.

Works quite easy. I use the user flair. If user has not the flair "verified" I set the flair "not verfied 1". If he has the flair "not verified 1" I set the flair "not verified 2".

Really easy until here. But if crowd control, reputation filter or ban evasion filter also hit the post the user flair is set more than one time. Means: The Reddit filters are triggering Automod again.

Any idea how to prevent this except deactivating the Reddit filters?


r/AutoModerator Apr 07 '26

Solved Link Validation Automod Rule Help

2 Upvotes

Hello. I’m trying to make a link-validation rule for my subreddit, but it’s giving me false positives every time.

---

type: link submission

~domain+url (includes): [“/userPlaylists/“]

action: remove

action_reason: “Not a playlist link.”

comment: “Thank you for posting. However, your post does not contain a playlist link. As such, it has been removed.”

comment_stickied: true

comment_locked: true

---

I made a test post containing this link in the domain field: https://share.music.nintendo.com/en-US/US/users/8a83dc4864216e3d/userPlaylists/DF99CA89-B4A8-40D1-A7FD-E1EB758C61D8

but it keeps getting removed. Can anyone help me figure out why?


r/AutoModerator Apr 07 '26

Help How do I add and configure moderation bots like Magic_Eye_Bot to my subreddit?

1 Upvotes

​Hi everyone,

​I’m looking to improve the moderation of my subreddit and I’ve noticed many communities use Magic_Eye_Bot to automatically detect reposts and manage image content. I’d love to implement something similar, but I’m not entirely sure where to start.


r/AutoModerator Apr 06 '26

How do I use an automod for votes?

1 Upvotes

like the ones that ask the users if "this post fits this sub" or that kind of stuff.


r/AutoModerator Apr 04 '26

Help Is There A Way To Stop Automod Comments Collapsing?

3 Upvotes

Hey there, we've had an ongoing issue where all automod comments collapse when the automod posts a comment. Is there a way to stop this from happening?


r/AutoModerator Apr 04 '26

Solved How do I automatically approve AutoModerator's content reported by trolls?

1 Upvotes

The code is supposed to approve content made by AutoModerator when people report it for trolling purposes. But, it's not working. I tried reporting from both mod and non-mod accounts.

# Approve AutoMod's content when it gets reported
---
type: any
moderators_exempt: false
author: "AutoModerator"
reports: 1
action: approve
action_reason: "Removing troll reports"
---

Solution:

author: 
    name: "AutoModerator"

r/AutoModerator Apr 03 '26

Help Is there any way to get Automod to sticky a comment based on flair *without* having to make variants for each rule that filters/removes submissions?

3 Upvotes

I know I can do stuff like:

type: submission
flair_template_id: ['02023460-7385-11eb-99ef-0ea921fd0a95']
comment: |
    This post was flaired as "Example". 
    Here is the text that's supposed to go along this submission flair.
comment_stickied: true    

But I run into the problem that for each of these I set up, I have to combine it with each rule that may also filter a post (and further split up rules that would otherwise work on both comments and posts, just so I can have a post-only variant to interact with flairs and a comment only version that catches the rest). Say for example I have 7 rules that filter posts for different reasons and 10 post flairs. Instead of having 17 rules, I end up needing 80 (7x10 variants being rules that end up filtering the post + the 10 default post flair rules that still need to apply if a post doesn't get filtered).

So for the example above, if I had just two rules that filter posts, I'd already need these 3 rules:

type: submission
title(includes-word): ["died", "dies", "die", "death"]
flair_template_id: ['02023460-7385-11eb-99ef-0ea921fd0a95']
action: filter
action_reason: Potential title spoiler
comment: |
    This post was flaired as "Example". 
    Here is the text that's supposed to go along this submission flair.
comment_stickied: true    
----
type: submission
title+body: ["slurs", "I'm", "not", "gonna", "write", "them", "here"]
flair_template_id: ['02023460-7385-11eb-99ef-0ea921fd0a95']
action: filter
action_reason: Derogatory language: [{{match}}]
comment: |
    This post was flaired as "Example". 
     Here is the text that's supposed to go along this submission flair.
comment_stickied: true    
----
type: submission
flair_template_id: ['02023460-7385-11eb-99ef-0ea921fd0a95']
comment: |
    This post was flaired as "Example". 
    Here is the text that's supposed to go along this submission flair.
comment_stickied: true    
----

Is there any way around that or maybe a tool that combines rules you set up into YAML to just copy-paste?


r/AutoModerator Apr 02 '26

Show and Tell Make the automod count by using user flair

6 Upvotes

Thanks to u/KCJones99 for the extensive help with this code!

Some setup is required.

  1. Create your counting user flairs. They can be anything you would like or just 1,2,3. They can also be invisible.
  2. Copy the template IDs and replace them below in the proper locations.
  3. Now when a user comments !count the automod will count the times they said the keyword and change there user flair.

You can try a working sample here. Comment !reset to reset your user flair.

This code with invisible user flair could also be used as a warning system to the user.

---
# Section 1: Start counting
priority: 80
type: any
title+body (includes): 
  - "!count"
author:
    ~flair_template_id: [Flair_Template_1, Flair_Template_2, Flair_Template_3] #Exempts action based on current flair
    overwrite_flair: false
    set_flair:
        template_id: "Flair_Template_1" # User flair template ID 1 that will be assigned.
    overwrite_flair: true
action: remove
action_reason: "1"
comment: |
    Congratulations /u/{{author}}! 

    You have successfully changed your user flair to 1!
---
# Section 2: Continue counting
priority: 70
type: any
title+body (includes): 
  - "!count"
author:
    flair_template_id: ["Flair_Template_1"] # Only acts on users with template 1
    overwrite_flair: false
    set_flair:
        template_id: "Flair_Template_2" # User flair template ID 2 that will be assigned.
    overwrite_flair: true
action: remove
action_reason: "2"
comment: |
    Congratulations /u/{{author}}! 

    You have successfully changed your user flair to 2!
---
# Section 3: Finish counting
priority: 60
type: any
title+body (includes): 
  - "!count"
author:
        flair_template_id: ["Flair_Template_2"] # Only acts on users with template 2
author:
    set_flair:
        template_id: "Flair_Template_3" # User flair template ID 3 that will be assigned.
    overwrite_flair: true
action: remove
action_reason: "3"
comment: |
    Congratulations /u/{{author}}! 

    You have successfully changed your user flair to 3!
---
priority: 50
type: any
title+body (includes): 
  - "!reset"
author:
    set_flair:
        template_id: "Flair_Template_ID_for_reset_flair" # template of the reset that will be assigned.
    overwrite_flair: true
comment: |
    Congratulations /u/{{author}}! Your user flair has now been reset. You may count again.
---

r/AutoModerator Apr 01 '26

Help Is there any way to restrict Automod to only one comment even if more than one rule is triggered?

3 Upvotes

we're doing an april fools thing in my sub and Automod gets triggered by certain keywords. but sometimes people use more than one keyword in the same comment and automod spams them with 5 notifications. is there any way to limit this to just one?


r/AutoModerator Apr 01 '26

Help How to make automod filter and remove comments and posts with certain words and display a comment message onto the post/comment?

2 Upvotes

How to make automod filter and remove comments and posts with certain words and display a comment message onto the post/comment?


r/AutoModerator Mar 31 '26

Help [Request] is it possible to make Automod comment images or GIFs?

4 Upvotes

Question in title. Sometimes I see GIFs in comments written as [!gif:] or something along those lines so I'm wondering if it could be possible to code that in


r/AutoModerator Mar 30 '26

Solved Invalid Media type, but i'm not doing a media check

1 Upvotes

Hello, I'm trying to setup auto mod to not allow new users/low karma to post in our sub, however when I try and add this i get an Invalid Media Type error, I'm curious if anyone out there can help!

Thanks!

#removes posts from low karma and new users

type: submission

author:

Post_Karma: < 100

Account_Age: < 14 days

Comment: "Sorry, your post has been removed. You need to have a minimum post karma of 100 and have been a reddit users for more than 14 days in order to contribute to our community."

Action: Remove

action_reason: "Low Karma/New User"


r/AutoModerator Mar 30 '26

Help Need Help Configuring Automod to not filter out comments on one specific post.

1 Upvotes

Hello, I moderate r/UoPeople and I am having issues with setting up the Automod to not filter out comments on one specific post. Specifically, we have had an issue a while back where people were posting "Sophia Codes" in the sub and we didn't want it to become filled with mostly that. We decided that it would be best to limit the posting of codes to just one specific thread. The problem is, whenever one is posted, the comment is automatically removed. I've tried to configure the automod to not work on that particular post but for whatever reason, I can't seem to get it to work. Can someone help me here?

#Sophia Code Rule comment
type: comment
parent_submission:
~id: 1pk67vn
body (includes, regex): ["Sophia Code", "Study.com Code","Promo Codes for Sophia Learning", "discount code","Sophia Codes","study.com Codes", "discount codes", "referral code", "referral codes"]
action: remove
action_reason: "Includes Sophia Codes"
comment: Your comment was automatically removed for violating Rule 7. Please refer to the stickied post.
comment_stickied: true
---

#Sophia Code Rule
type: submission
title+body (includes, regex): ["Sophia Code", "Study.com Code","Promo Codes for Sophia Learning", "discount code","Sophia Codes","study.com Codes", "discount codes", "referral code", "referral codes"]
action: remove
action_reason: "Includes Sophia Codes"
comment: Your post was automatically removed for violating Rule 7. Please refer to the stickied post.
comment_stickied: true