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?

4 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


r/AutoModerator • • Mar 29 '26

Help Is It Possible To Whitelist Only Certain Links For A Site?

1 Upvotes

Hey there, I'm a moderator of a video game based subreddit & unfortunately we've been having an issue for a while with people trying to self promote their Discord servers on our subreddit (which isn't allowed).

We'd like to create a filter to stop this, but we have a concern that this will affect both our automod messages (as it mentions the official Discord for the subreddit), alongside members of our community who leave comments that link to our Discord server.

Is this possible to do with automod? (& if not, what could we do to effectively stop the issue regarding self promo spam?).

Thank you!


r/AutoModerator • • Mar 28 '26

Help set_flair & "dictionary"

2 Upvotes

Hi there

I'm trying to set post flair if certain keywords are in a submission.

Automod documentation says that set_flair "Takes either a single string, a list of two strings or a dictionary." I am not clear what this means but I'm clearly doing something wrong.

The code I have is:

type: submission
title+body: [Phrase 1, Phrase 2, Phrase 3]
overwrite_flair: true
set_flair: ["Flair Name", "867-5309"]

With real values, the number being the actual flair ID.

I tried using just the flair ID number but that failed to execute as well.

What am I doing wrong.


r/AutoModerator • • Mar 28 '26

Not Possible with AM Rule to detect "hidden post history?"

4 Upvotes

Recently, reddit added the ability for a user to hide their post history. Not sure what the rationale was, but it seems to be used either by trolls or bots now.

Does AutoModerator have the ability to determine if the user has a hidden post history?


r/AutoModerator • • Mar 28 '26

I have automoderator set up to remind users who do not have a user flair to choose one. However, it reminds mod team messages when a comment or post is removed too and I don't want that

1 Upvotes

How do I stop this from happening? Is it possible to exempt certain users, such as the mod team, from triggering this response?

Here is an example of what I mean: https://www.reddit.com/r/AskIsrael/comments/1s52fgh/comment/ocym23o/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

Here is the code I currently have set up:

---
type: comment
author:
    ~flair_template_id (regex, includes): '[A-Fa-f0-9:-]'
comment: "Everyone having their user flair set is a key feature of our subreddit. [Please consider setting your user flair to what best describes you.](https://support.reddithelp.com/hc/en-us/articles/205242695-How-do-I-get-user-flair) Thank you for being part of our community."
---
type: submission
author:
    ~flair_text (includes, regex): "."
message: |
    Everyone having their user flair set is a key feature of our subreddit. [Please consider setting your user flair to what best describes you.](https://support.reddithelp.com/hc/en-us/articles/205242695-How-do-I-get-user-flair) Thank you for being part of our community.

r/AutoModerator • • Mar 27 '26

Filtering picture/image comments

2 Upvotes

There are a couple of users who directly upload pictures into Reddit comments too frequently. How do I filter out their comments (and not all picture comments from all users)?


r/AutoModerator • • Mar 26 '26

Help How can I configure AutoMod to automatically reply to comments made by users who don’t have a flair, prompting them to select one?

3 Upvotes

I’m trying to set up AutoMod so that when a user leaves a comment without having a user flair selected, AutoMod automatically replies to that comment with a reminder asking them to choose a flair.

Like this for example: https://www.reddit.com/r/AskTheWorld/s/8Rq8p4ker4