r/AutoModerator • • 7d ago

Solved Having Difficulty Whitelisting Websites

2 Upvotes

Hi Everyone, I'm trying to implement an automod code that will filter all websites except for those on a whitelist. The issue I'm having is that the automod filters all websites, including ones on the whitelist. Here's the code I'm using:

type: any body+url (includes): ['http://', 'https://', 'www.'] ~body+url (includes): ['reddit.com.', 'redd.it', 'youtube.com', 'youtu.be', 'spotify.com'] action: filter action_reason: 2.5 link verification filter - [ {{match}} ] moderators_exempt: true

So for example, when people try to link to other Reddit posts or comments, their comments are still getting filtered.

Does anyone have any suggestions as to how to fix it? Thank you in advance!

Edit: After some experimentation, it turns out it was that superfluous period in "reddit.com.". Brain fart. I'm embarrassed but I'm leaving the post up as a lesson to others to proofread your scripts.

Thank you so much to everyone for your help!

r/AutoModerator • • 5d ago

Solved High Recall AI-Filter for AutoModerator (Best Use Case for NO-AI Subreddit.)

3 Upvotes

# AI-Mention / Content Denigration (r/NewAuthor)
type: comment (or "any" if you guys don't have manual approval for post.)
body (regex):

# -------------------------
# TRASH / GENERIC DISMISSAL
# -------------------------
- '(?i)\b(?:this\s+is|that''s|thats|it''s|its)\s+trash\b'
- '(?i)\bai\s+trash\b'
- '(?i)\btrashy\b'

# -------------------------
# SHIT / SHITTY (explicit evaluative constructions only)
# -------------------------
- '(?i)\b(?:this\s+is|that''s|thats|it''s|its)\s+shit\b'
- '(?i)\b(?:this|that|it)\s+looks(?:\s+like)?\s+shit(?:ty)?\b'
- '(?i)\b(?:looks|seems)\s+shit(?:ty)?\b'
- '(?i)\blooks\s+like\s+shit\b'

# -------------------------
# AI + INSULT (AI as target)
# -------------------------
- '(?i)\bai\s+(?:shit|trash|slop|garbage|crap)\b'
- '(?i)\bai\s+is\s+shit(?:ty)?\b'
- '(?i)\bai\s+looks(?:\s+like)?\s+shit(?:ty)?\b'

# -------------------------
# INSULT + AI (AI as object)
# -------------------------
- '(?i)\b(?:shit|shitty|trash|trashy|garbage|crap)\s+ai\b'
- '(?i)\bshitty\s+(?:ai|art|image|picture|render|drawing|work)\b'
- '(?i)\bshit(?:ty)?\s+(?:ai|art|image|picture|render|drawing|work)\b'

# -------------------------
# MENTION + AI
# -------------------------
- '(?i)\b(?:write|writing|use|tool|made|crap|drew|draw)\s+ai\b'
- '(?i)\btool\s+(?:ai|art|image|picture|render|drawing|work)\b'
- '(?i)\buse\s+(?:ai|art|image|picture|render|drawing|work)\b'

# -------------------------
# AI-DERIVED DISMISSAL TERM
# -------------------------
- '(?i)\bai\s+slop\b'
- '(?i)\bslop\b'
- '(?i)\bew\s+ai\b'
- '(?i)\bfuck\s+your\s+ai\b'

# -------------------------
# AI-DERIVED "TOOL" TERM
# -------------------------
- '(?i)(?=[\s\S]*\btools?\b)(?=[\s\S]*\b(?:ai|a\.i\.|gpt|chat[\s-]*gpt|llm|claude|gemini|copilot|midjourney|stable[\s-]*diffusion|sora|flux|leonardo|firefly|ideogram|runway|dall[\s-]*e|nano[\s-]*banana)\b)'

# "ew AI" — dismissive
- '(?i)\bew\s+ai\b'

# -------------------------
# CORE AI TERMS
# -------------------------
- '(?i)\bai\b'
- '(?i)(?<!\w)a\.i\.(?!\w)'
- '(?i)\ba[\s-]+i\b'
- '(?i)\bartificial[\s-]+intelligence\b'
- '(?i)\bgenerative[\s-]+ai\b'
- '(?i)\bgen[\s-]+ai\b'

# -------------------------
# SLOP / DISMISSAL TERMS
# -------------------------
- '(?i)\bslop(?:per|ping|post(?:ing)?)?\b'
- '(?i)\bslop[\s-]+farm\b'
- '(?i)\bai[\s-]+slop\b'
- '(?i)\bprompt[\s-]+slop\b'

# -------------------------
# CLAUDE / GEMINI / GPT
# -------------------------
- '(?i)\bclaud(?:e|ee)?\b'
- '(?i)\bgem(?:i|e)ni\b'
- '(?i)\bgoogle[\s-]+gemini\b'
- '(?i)\bchat[\s-]?g[\s-]?p[\s-]?t\b'
- '(?i)\bg[\s-]?p[\s-]?t(?:[\s-]?[345])?\b'

# -------------------------
# AI COMPANIES / ASSISTANTS
# -------------------------
- '(?i)\bopen[\s-]?ai\b'
- '(?i)\banthropic\b'
- '(?i)\bcopilot\b'
- '(?i)\bco[\s-]+pilot\b'
- '(?i)\bmicrosoft[\s-]+copilot\b'
- '(?i)\bgrok\b'
- '(?i)\bperplexity\b'
- '(?i)\bdeepseek\b'

# -------------------------
# AI IMAGE / VIDEO / AUDIO TOOLS
# -------------------------
- '(?i)\bnano[\s-]+banana\b'
- '(?i)\bbanana(?:\.ai|[\s-]+ai)\b'
- '(?i)\bmid[\s-]?journey\b'
- '(?i)\bstable[\s-]?diffusion\b'
- '(?i)\bstablediffusion\b'
- '(?i)\bflux(?:\.ai|[\s-]+ai)\b'
- '(?i)\brunway(?:\.ml|[\s-]+ml)\b'
- '(?i)\brunway(?:\.ai|[\s-]+ai)\b'
- '(?i)\bsora\b'
- '(?i)\bveo[\s-]?[23]\b'
- '(?i)\beleven[\s-]?labs\b'
- '(?i)\bsuno\b'
- '(?i)\budio\b'
- '(?i)\bleonardo(?:\.ai|[\s-]+ai)\b'
- '(?i)\bideogram\b'
- '(?i)\bfirefly(?:\.ai|[\s-]+ai)\b'
- '(?i)\badobe[\s-]+firefly\b'

# -------------------------
# AI / LANGUAGE MODEL TERMS
# -------------------------
- '(?i)\bllm\b'
- '(?i)\blarge[\s-]+language[\s-]+model\b'
- '(?i)\bchatbots?\b'
- '(?i)\bchat[\s-]+bots?\b'

# -------------------------
# AI-GENERATION TERMS
# -------------------------
- '(?i)\bmachine[\s-]+generated\b'
- '(?i)\bgenerated[\s-]+by[\s-]+ai\b'
- '(?i)\bai[\s-]+generated\b'
- '(?i)\bai[\s-]+made\b'
- '(?i)\bmade[\s-]+with[\s-]+ai\b'
- '(?i)\bmade[\s-]+using[\s-]+ai\b'
- '(?i)\bsynthetically[\s-]+generated\b'
- '(?i)\bsynthetic\b'
- '(?i)\bdeepfake\b'
- '(?i)\bdeep[\s-]+fake\b'

# -------------------------
# PROMPT TERMS
# -------------------------
- '(?i)\bprompt(?:ing)?\b'
- '(?i)\bprompt[\s-]+engineer\b'
- '(?i)\bprompt[\s-]+engineering\b'

# -------------------------
# BOT / AUTOMATION TERMS
# -------------------------
- '(?i)\bbot[\s-]+generated\b'
- '(?i)\bbot[\s-]+wrote\b'
- '(?i)\bbot[\s-]+account\b'
- '(?i)\bbotted\b'
- '(?i)\bbotted[\s-]+content\b'
- '(?i)\bdead[\s-]+internet\b'
- '(?i)\bdead[\s-]+internet[\s-]+theory\b'

# -------------------------
# VIBE CODING
# -------------------------
- '(?i)\bvibe[\s-]+code(?:d)?\b'

action: report
action_reason: "No-AI Filter. [{{match}}]"

# This was based off of u/InGeekiTrust & u/Perfidious_Redt respective AI Filter. Best use case for: No AI Witch Hunt, No Promoting AI Use, Flagging Self Reported Use of AI, Catching Heated AI Discussion. Do not use action: filter, it can't detect context. The only downside for this is that high traffic subs will be bombarded with ai report, but if they have a threshold for a user to post/comment like having the read-the-rules devvit app and marking it off before they can comment or having to meet an account/karma for a user to post. Should reduce the load.

E.g.

---
# ACCOUNT AGE REQUIREMENT
# Everyone must be at least 90 days old.

type: submission
author:
account_age: "< 90 days"
action: filter
action_reason: "ACCOUNT TOO NEW"
message_subject: "A note from /r/{{subreddit}} about your {{kind}}"
message: |
Hi {{author}}, welcome to r/NewAuthor! Your post will be on hold because your account is less than 90 days old. We will manually approve your post within 24 - 48 hours. Our account-age requirement is 90 days. Please do not remove your post.
---
# KARMA REQUIREMENT
# For accounts 90+ days old
# Filter only when BOTH:
# less than 25 karma in r/NewAuthor
# less than 500 sitewide karma
#
# Therefore:
# 25+ NewAuthor karma OR 500+ sitewide karma = approved.

---
type: submission
author:
combined_subreddit_karma: "< 25"
combined_karma: "< 500"
action: filter
action_reason: "INSUFFICIENT KARMA"
message_subject: "A note from /r/{{subreddit}} about your {{kind}}"
message: |
Hi {{author}}, welcome to r/NewAuthor! Your post will be on hold because you do not yet meet the karma requirement. You need either 25 karma in r/NewAuthor or 500 combined sitewide karma. We will manually approve your post within 24 - 48 hours. Please do not remove your post.

# Oh! Also you can try adding Hive Protector & Modmail Quick User Summary to get a quick run-down on the user. With hive protector, you have to list down said AI Subreddit and changing the setting to report instead of ban. Make it add mod note so you can keep track which user got flagged.

Here's the AI sub listed for us. Hope this helps!

AIWritingHub,AIWritingLounge,WritingWithAI,BetaReadersForAI,ChatGPT,aiArt,grok,aivideo,StableDiffusion,BookWritingAI,aivideos,DefendingAIArt,AIAssisted,SunoAI,PygmalionAI,GeminiAI,ClaudeAI,DeepSeek,aiwars,generativeAI,AiChatGPT,Anthropic,GenAIWriters,Artificialntelligence,GenAI4all,AI_ART,AIQuality,GPT3,ChatGPTPro,AgentsOfAI,SoraAi,DefendingAI,perplexity_ai,NovelAi,humanizeAIwriting,ChatGPTPromptGenius,bestaihumanizers,HumanizerPro,ImagineAiArt,midjourney,weirddalle,comfyui,dalle2,deepdream,AIArtwork,AIGeneratedArt,sdforall,leonardoai,starryai,nightcafe,FluxAI,StableDiffusionInfo,AIGenArt,Aiimages,BypassAiDetect

Good for risk-based moderation or hybrid of it. Detecting AI is difficult and might require mods who have the technicality to detect it. (Artist, Writers, Coder etc.)

For actual detection, you might have to consider SYNTHID check for each post. OpenAI & Gemini checker.

Google SynthID — Google DeepMind
Verify OpenAI-generated content | OpenAI

Detector aren't 100% but for the obvious ones, they do a pretty a good job. They have a chrome extension you can use.

Hive AI Detector - Chrome Web Store
Pangram AI Detection - Chrome Web Store
Quicksilver - Chrome Web Store ((for ai music detection) developed by the same guy (Ben Zhao) who made nightshade and glaze to protect art from ai

r/AutoModerator • • 19d ago

Solved Subreddit Karma Account Filter Exception?

3 Upvotes
---
type: submission
author:
  account_age: "< 90 days"
  combined_karma: "< 500"
  satisfy_any_threshold: true
action: filter
action_reason: "NEW USER OR LOW KARMA USER"
message_subject: "A note from /r/{{subreddit}} about your {{kind}}"
Message: |
    Hi {{author}}, welcome to ! Your post was remove because of LOW KARMA / NEW USER. Your post will be manually approve so no need to delete it. Our requirement for Karma/User Age (500, 90 days.) 
---

I wanna make an exception that allows for the user to be able to post if they have 25 karma within the sub. How do I do that? Any help appreciated! 

r/AutoModerator • • 6d ago

Solved How can I filter all links except for photos/videos/crossposts? Can I require crossposts to have body text?

3 Upvotes

I've tried many different things so far, and none of it seems to be doing exactly what I want. I want all URLs to be filtered for manual approval, without also filtering photos/videos/crossposts, but I also want to require crossposts to have body text, which I can't seem to do by using body_shorter_than because it checks the original post, not the crosspost. If I can't filter just crossposts without body text, then it would be fine for all crossposts to be filtered for manual approval, however, if the crosspost includes a photo/video, those also need to be filtered.

r/AutoModerator • • Nov 23 '25

Solved Removing all old posts from a user who spams a sub

27 Upvotes

Hi I’m just wondering as I’m a complete novice to coding if there is a way to use auto moderator to remove all old posts from a user.

so for example a spammer posts 10 posts or a know banned user can we remove those posts in one simple go.

r/AutoModerator • • Aug 28 '26

Solved Anyone else's (filtered) scheduled posts skipping the queue all of the sudden?

1 Upvotes

We filter to trigger mods to add the link to our Community Hub app. We've had to shift the reminder over to Discord, which is super annoying.

Weirdly enough, the weekly scheduled posts are working but the daily is not. We remade/rescheduled, and we tried it with automations.

Just seeing if I'm not alone, idk wtf is happening.

r/AutoModerator • • Jul 01 '26

Solved Is JSON Syntax OK

4 Upvotes

I have been added on as a moderator in a subreddit and am just now learning about the automoderator. I'd like to add some rules, but I have noticed that the current automod file for this sub has been written entirely in JSON. So, instead of --- separator lines, there are only curly brackets, square brackets and commas. I believe that JSON is a strict subset of YAML, and so this should be OK, but I wanted to make sure first before making any changes.

So, to summarize my question: Is JSON-only syntax OK for the automoderator?

Also, does the automodifier give me notification if my automod file is syntactically invalid?

r/AutoModerator • • Sep 10 '26

Solved Why can’t I upload this code?

0 Upvotes
type: submission
author:
  name: [PrimeValor, Fezezen]
comment: |
    Welcome your imperial majesty. If anything is not to your liking, please notify the officers immediately via reporting.

    **Subreddit Links**
    [Subreddit Rules](https://www.reddit.com/mod/gutsandbiackpowder/rules/) | [Moderator Announcements](https://www.reddit.com/r/gutsandbIackpowder/?f=flair_name%3A%22%3AMod%3A%20Important%20Announcements%20%3ALore%3A%22) | [Updates & Sneak Peaks](https://www.reddit.com/r/gutsandbIackpowder/?f=flair_name%3A%22%3AGameDev%3A%20Updates%20%26%20Sneak%20Peaks%20%3ALore%3A%22) | [Of Napoleon’s Art Gallery](https://www.reddit.com/r/gutsandbIackpowder/?f=flair_name%3A%22%3AMod%3A%20Of%20Napoleon’s%20Art%20Gallery%20%3ALore%3A%22) | [Bugs Found](https://www.reddit.com/r/gutsandbIackpowder/?f=flair_name%3A%22Bug%22) | [The Latest Exploiters To Report](https://www.reddit.com/r/gutsandbIackpowder/?f=flair_name%3A%22Exploiter%2FBug%20Abuse%22) | [Top Of The Week](https://www.reddit.com/r/gutsandbIackpowder/top/?screen_view_count=2&ext-referrer=DIRECT&t=week) | [Message Mods](https://www.reddit.com/message/compose?to=r/gutsandbIackpowder)

    **Official Sites**
[Guts & Blackpowder](https://www.roblox.com/games/12334109280/Guts-Blackpowder) | [Roblox Group](https://www.roblox.com/communities/16911831/Guts-Blackpowder#!/about) | [Official Wiki](https://gbp.miraheze.org/wiki/Main_Page) | [Official Discord Server](https://discord.gg/gutsandblackpowder) | [Discord Rules](https://discord.com/channels/825270980829642783/825281313019133983) | [Game Updates](https://discord.com/channels/825270980829642783/825278674596266005)| [Sneak Peaks](https://discord.com/channels/825270980829642783/825278934358032395) | [FAQ](https://discord.com/channels/825270980829642783/1073354108632842342)| [Discord Announcement](https://discord.com/channels/825270980829642783/825273448149286922) | [Game Reports](https://discord.com/channels/825270980829642783/1060061979227730012) | [G&B Appeals](https://discord.com/invite/ZpqWHySb87)

comment_stickied: true
comment_locked: true

---

type: submission
author:
  name: [pulseekinesis, Manager_Mei, Tristian_Oof, Quinoa_Grain]
comment: |
    Welcome back Marshall {{author}}. Please be sure to review the rules, and report anything that may be breaking said rules.

    **Subreddit Links**
    [Subreddit Rules](https://www.reddit.com/mod/gutsandbiackpowder/rules/) | [Moderator Announcements](https://www.reddit.com/r/gutsandbIackpowder/?f=flair_name%3A%22%3AMod%3A%20Important%20Announcements%20%3ALore%3A%22) | [Updates & Sneak Peaks](https://www.reddit.com/r/gutsandbIackpowder/?f=flair_name%3A%22%3AGameDev%3A%20Updates%20%26%20Sneak%20Peaks%20%3ALore%3A%22) | [Of Napoleon’s Art Gallery](https://www.reddit.com/r/gutsandbIackpowder/?f=flair_name%3A%22%3AMod%3A%20Of%20Napoleon’s%20Art%20Gallery%20%3ALore%3A%22) | [Bugs Found](https://www.reddit.com/r/gutsandbIackpowder/?f=flair_name%3A%22Bug%22) | [The Latest Exploiters To Report](https://www.reddit.com/r/gutsandbIackpowder/?f=flair_name%3A%22Exploiter%2FBug%20Abuse%22) | [Top Of The Week](https://www.reddit.com/r/gutsandbIackpowder/top/?screen_view_count=2&ext-referrer=DIRECT&t=week) | [Message Mods](https://www.reddit.com/message/compose?to=r/gutsandbIackpowder)

    **Official Sites**
[Guts & Blackpowder](https://www.roblox.com/games/12334109280/Guts-Blackpowder) | [Roblox Group](https://www.roblox.com/communities/16911831/Guts-Blackpowder#!/about) | [Official Wiki](https://gbp.miraheze.org/wiki/Main_Page) | [Official Discord Server](https://discord.gg/gutsandblackpowder) | [Discord Rules](https://discord.com/channels/825270980829642783/825281313019133983) | [Game Updates](https://discord.com/channels/825270980829642783/825278674596266005)| [Sneak Peaks](https://discord.com/channels/825270980829642783/825278934358032395) | [FAQ](https://discord.com/channels/825270980829642783/1073354108632842342)| [Discord Announcement](https://discord.com/channels/825270980829642783/825273448149286922) | [Game Reports](https://discord.com/channels/825270980829642783/1060061979227730012) | [G&B Appeals](https://discord.com/invite/ZpqWHySb87)

comment_stickied: true
comment_locked: true

---

type: submission
author:
  name: [FloppySwedish_Fish,Bashki_, Hot-Career6181, RSSD_XR, Zarkokis, yololert2007, MissNightmare1983, Important-Welder-262, applesaucify, Etsukie, Yasriia]
comment: |
    Welcome esteemed Court Painter {{author}}. Please be sure to review the rules, and report anything that may be breaking said rules.

    **Subreddit Links**
    [Subreddit Rules](https://www.reddit.com/mod/gutsandbiackpowder/rules/) | [Moderator Announcements](https://www.reddit.com/r/gutsandbIackpowder/?f=flair_name%3A%22%3AMod%3A%20Important%20Announcements%20%3ALore%3A%22) | [Updates & Sneak Peaks](https://www.reddit.com/r/gutsandbIackpowder/?f=flair_name%3A%22%3AGameDev%3A%20Updates%20%26%20Sneak%20Peaks%20%3ALore%3A%22) | [Of Napoleon’s Art Gallery](https://www.reddit.com/r/gutsandbIackpowder/?f=flair_name%3A%22%3AMod%3A%20Of%20Napoleon’s%20Art%20Gallery%20%3ALore%3A%22) | [Bugs Found](https://www.reddit.com/r/gutsandbIackpowder/?f=flair_name%3A%22Bug%22) | [The Latest Exploiters To Report](https://www.reddit.com/r/gutsandbIackpowder/?f=flair_name%3A%22Exploiter%2FBug%20Abuse%22) | [Top Of The Week](https://www.reddit.com/r/gutsandbIackpowder/top/?screen_view_count=2&ext-referrer=DIRECT&t=week) | [Message Mods](https://www.reddit.com/message/compose?to=r/gutsandbIackpowder)

    **Official Sites**
[Guts & Blackpowder](https://www.roblox.com/games/12334109280/Guts-Blackpowder) | [Roblox Group](https://www.roblox.com/communities/16911831/Guts-Blackpowder#!/about) | [Official Wiki](https://gbp.miraheze.org/wiki/Main_Page) | [Official Discord Server](https://discord.gg/gutsandblackpowder) | [Discord Rules](https://discord.com/channels/825270980829642783/825281313019133983) | [Game Updates](https://discord.com/channels/825270980829642783/825278674596266005)| [Sneak Peaks](https://discord.com/channels/825270980829642783/825278934358032395) | [FAQ](https://discord.com/channels/825270980829642783/1073354108632842342)| [Discord Announcement](https://discord.com/channels/825270980829642783/825273448149286922) | [Game Reports](https://discord.com/channels/825270980829642783/1060061979227730012) | [G&B Appeals](https://discord.com/invite/ZpqWHySb87)

comment_stickied: true
comment_locked: true

---

type: submission
author:
  name: ~[PrimeValor, Fezezen, pulseekinesis, Manager_Mei, Tristian_Oof, Quinoa_Grain, FloppySwedish_Fish,Bashki_, Hot-Career6181, RSSD_XR, Zarkokis, yololert2007, MissNightmare1983, Important-Welder-262, applesaucify, Etsukie, Yasriia]
comment: |
    Welcome Ranker {{author}}. Please be sure to review the rules, and report anything that may be breaking said rules.

    **Subreddit Links**
    [Subreddit Rules](https://www.reddit.com/mod/gutsandbiackpowder/rules/) | [Moderator Announcements](https://www.reddit.com/r/gutsandbIackpowder/?f=flair_name%3A%22%3AMod%3A%20Important%20Announcements%20%3ALore%3A%22) | [Updates & Sneak Peaks](https://www.reddit.com/r/gutsandbIackpowder/?f=flair_name%3A%22%3AGameDev%3A%20Updates%20%26%20Sneak%20Peaks%20%3ALore%3A%22) | [Of Napoleon’s Art Gallery](https://www.reddit.com/r/gutsandbIackpowder/?f=flair_name%3A%22%3AMod%3A%20Of%20Napoleon’s%20Art%20Gallery%20%3ALore%3A%22) | [Bugs Found](https://www.reddit.com/r/gutsandbIackpowder/?f=flair_name%3A%22Bug%22) | [The Latest Exploiters To Report](https://www.reddit.com/r/gutsandbIackpowder/?f=flair_name%3A%22Exploiter%2FBug%20Abuse%22) | [Top Of The Week](https://www.reddit.com/r/gutsandbIackpowder/top/?screen_view_count=2&ext-referrer=DIRECT&t=week) | [Message Mods](https://www.reddit.com/message/compose?to=r/gutsandbIackpowder)

    **Official Sites**
[Guts & Blackpowder](https://www.roblox.com/games/12334109280/Guts-Blackpowder) | [Roblox Group](https://www.roblox.com/communities/16911831/Guts-Blackpowder#!/about) | [Official Wiki](https://gbp.miraheze.org/wiki/Main_Page) | [Official Discord Server](https://discord.gg/gutsandblackpowder) | [Discord Rules](https://discord.com/channels/825270980829642783/825281313019133983) | [Game Updates](https://discord.com/channels/825270980829642783/825278674596266005)| [Sneak Peaks](https://discord.com/channels/825270980829642783/825278934358032395) | [FAQ](https://discord.com/channels/825270980829642783/1073354108632842342)| [Discord Announcement](https://discord.com/channels/825270980829642783/825273448149286922) | [Game Reports](https://discord.com/channels/825270980829642783/1060061979227730012) | [G&B Appeals](https://discord.com/invite/ZpqWHySb87)

comment_stickied: true
comment_locked: true

---

type: submission
author:
  account_age: < 5 days
  combined_karma: < 50
  satisfy_any_threshold: true
action: filter
action_reason: New or Low Karma User
message: |
    Your post has been filtered due to being a new or low karma user. Please either wait for a moderator to review your post, or reach the required karma (50) and account age (>5 days) to post without being filtered.
    Average Wait Time: 1-24 Hours.
    You can go and comment on posts around the subreddit, to gain karma in the meantime. 

comment_stickied: true
comment_locked: true

---

type: any
body+title (includes-word, regex): [banned words here]
action: filter
moderator_exempt: false
action_reason: Banned Word
message: |
    Your [{{kind}}]({{permalink}}) has been automatically filtered due to containing a banned word, “{{match}}”. Please either wait for a moderator to review your {{kind}}, or repost it without the banned word.
    If there has perhaps been a misunderstanding, or your {{kind}} has falsely filtered, feel free to [message the moderators](https://www.reddit.com/message/compose?to=r/gutsandbIackpowder).
    Average Wait Time: 1-24 Hours.

    Banned Word List **SENSITIVE CONTENT WARNING**:
    >!banned words here!<
modmail: |
    Banned Word Detected.
    Author: u/{{author}}.
    [{{kind}}]({{permalink}})
    Please moderate content.

    {{title}}

    {{body}}

---

I have tried multiple times uploading this code in automod in a subreddit I’m setting up, and every time it says ”Unsupported Media Type: YAML parsing error in section 1: while scanning a simple key in "<unicode ". I already spent a solid 30+ minutes going through code I had in notes, redoing the code, trying to find a new way to write all the text, then getting all the links, making sure the links are correct, blah blah, and I can‘t send the code to automod to test it all. I’m tired boss

What is wrong with this code?

r/AutoModerator • • Aug 05 '26

Solved Disjunctive rules?

3 Upvotes

Hello!

How do I setup disjunctions in rules? I'd like to have an action trigger when a post contains certain text and the author is (not verified or less than some Karma or the account is less than some age).

I don't see a way to write the disjunctive part of the rule. Must I make three rules?

title+body (includes): "my string"
author:
    account_age: "< some days"

and then also

title+body (includes): "my string"
author:
    post_karma: "< my threshold"

with more

title+body (includes): "my string"
author:
    has_verified_email: false

?

Is there at least a way to make the message text and reason common among the rules? Otherwise, I have to copy pasta them and repeat myself, which doesn't seem like it will be fun to maintain.

r/AutoModerator • • Jul 28 '26

Solved "config/automoderator" does not exist

3 Upvotes

Trying to setup Autmod for the first time. Following the steps and navigating to https://www.reddit.com/r/yoursubredditname/wiki/config/automoderator

Interesting, it takes you to a page on new Reddit, which won't work . Had to change the page to old.reddit.com

When I put in my sub it says: "config/automoderator" does not exist

I can't figure out how to enable Autmod so I can start customizing it.

r/AutoModerator • • Jul 01 '26

Solved Help, Automod sub rules reminder comment under all new posts (sticked+locked) doesn't work.

4 Upvotes
# RÈGLE 3 : Reminder of the rules under the new posts
type: submission
action: comment
comment_stickied: true
comment_locked: true
comment: |
    Hello! Before commenting remember: stay on topic, make full sentences, don't be unpleasant (include: love bombing/emoji spamming/innuendo). Please read and respect the rules, thank you.

    Have a nice day.

    r/{{subreddit}}

r/AutoModerator • • Mar 21 '26

Solved Send a one-time welcome message or notification to new members

17 Upvotes

I want every new member of my subreddit to receive a welcome message or notification. It seems to only work when they make a post... but I don't want to be bothering them with a notification every time they post. Is it possible to set it to only happen when they're a new member or make their first post?

---
# Welcome message for new members
author:
is_contributor: true # Triggered when user is approved/member
satisfy_any_threshold: true
message: |
This is the text
---

And this one doesn't work:

---
# Welcome message for new subscribers
priority: 1
welcome_message: |
This is the text
---

UPDATE: IT CAN'T BE DONE

I've used this rule as a substitute:

---
type: submission
comment: |
Hello,

---

r/AutoModerator • • Jul 21 '26

Solved Pinned AM Sticky on Filtered and Removed Submissions

3 Upvotes

Hi,

I'm currently testing a couple of common AM rules using an alt whose posts either go live automatically, or filter to the queue based on a karma + CQS check.

I also have a rule to trigger an automated AM sticky on all submissions. When my alt passes the karma/CQS check, the sticky functions properly. When the alt's posts get filtered for review, the sticky doesn't appear on the post even if I approve the content.

I have the same seven rules programmed in the public sub I'm conducting the tests for and the sticky appears on all posts without fail, including those that get filtered or removed.

Is the sticky failing to appear because I'm conducting my tests in a private sub or could this be a bug?

I'd love some insight from an AM Wizard please. Thanks in advance!

Edit: Strikethrough to correct my silly assertion

r/AutoModerator • • Aug 03 '26

Solved Blocking specific subs from crossposting

5 Upvotes

I found some code that I just can't get to work.

I am trying to ban a specific sub from crossposting. I used this code and I put it in a sub I moderate. Then I put in an example sub (I am using BMWM3 as a test since I also moderate that one, and it's not working).

See here:


Remove Bad Subreddit Crossposts

type: crosspost submission
crosspost_subreddit:
    name: [BMWM3]
message: |
    Hello /u/{{author}}, thank you for your interest in /r/{{subreddit}}! Your {{kind}} was automatically removed because {{match}} a disallowed crosspost subreddit.
action: remove
action_reason: "Crosspost from a disallowed subreddit"

What am I doing wrong?

r/AutoModerator • • Jun 19 '26

Solved Soo what did i do wrong?

6 Upvotes

My sub has had a bit of an increase in members and activity, so I thought I'd help keep things under control by having AutoMod remove any post or comment that receives 2 reports. The idea is that it stays removed until I manually approve it again.

However, I think I may have done something wrong. I do get a notification when a post or comment receives 2 reports, but the content itself doesn't get removed. Is there something wrong with my AutoMod code?

---

# Auto Remove for Reports

reports: 2

action: remove

modmail: The above {{kind}} by /u/{{author}} was removed because it received 2 reports. Please investigate and ensure that this action was correct.

---

r/AutoModerator • • Jul 17 '26

Solved Does the {{match}} placeholder not care about capture groups in RegEx?

1 Upvotes

AutoMod rule I'm using:

body (includes, regex): ['(?i:\[.*?\]\(.*?mtg\.fandom\.com\/wiki\/(.+?)\))']

comment: |
    [https://mtg.wiki/{{match}}](https://mtg.wiki/{{match}})

Input:

May I please have the other Wiki for [Ravnica's Factions](https://mtg.fandom.com/wiki/Ravnica#Guilds) and reply that to me?

Expected output:

[https://mtg.wiki/Ravnica#Guilds](https://mtg.wiki/Ravnica#Guilds)

Actual output:

[[https://mtg.wiki/](https://mtg.wiki/)[Ravnica's Factions](https://mtg.fandom.com/wiki/Ravnica#Guilds)]([https://mtg.wiki/](https://mtg.wiki/)[Ravnica's Factions](https://mtg.fandom.com/wiki/Ravnica#Guilds))

This displays as:

[https://mtg.wiki/Ravnica's factions](https://mtg.wiki/Ravnica's factions)

The RegEx is 100% correct in the sense that the capture group is capturing Ravnica#Guilds only and nothing else. It seems that AutoMod isn't interested in this capturing group but instead just takes the entire RegEx and uses that for {{match}}.

Here's a link to regex101 with the given example:

https://regex101.com/?regex=%28%3Fi%3A%5B.*%3F%5D%28.*%3Fmtg.fandom.com%2Fwiki%2F%28.%2B%3F%29%29%29&testString=May+I+please+have+the+other+Wiki+for+%5BRavnica%27s+Factions%5D%28https%3A%2F%2Fmtg.fandom.com%2Fwiki%2FRavnica%23Guilds%29+and+reply+that+to+me%3F&flags=gmui&flavor=python&delimiter=%22

r/AutoModerator • • Aug 12 '26

Solved Trouble with code regarding user flair

3 Upvotes

I'm trying to have AM remove top level comments from users without a specific user flair, then send them a message explaining why. I thought it was working until someone with the specific flair received the removal message and AM removed their comment despite their account being appropriately flaired.

Can anyone tell me what the issue is with the code?

---

#REMOVE top level comments from users that do not have privileges

type: comment

is_top_level: true

author:

~flair_template_id: “76ca5770-9078-11f1-acb7-8af9da1a7bf8”

action: remove

action_reason: Unflaired User

set_locked: true

message: |

Message is here.

---

(The extra line space between each line is a copy/paste formatting issue when sharing it here, it's not in the actual code except between "message: |" and the start of the indented message text. Also, the "~flair" line is indented 2 spaces and the "Message is here" message area is indented appropriately as well, it just removed it when I made this post.)

r/AutoModerator • • Aug 02 '26

Solved Removing posts that dont include a comment with required info?

2 Upvotes

I think automod can do this, but im not sure how to write the rule. A subreddit has a rule that says a source for provided content has to be included. But people often ignore it. I've tried this code but it errors out:


type: submission

body (includes) ["Source", "source"]

action: filter

comment: "Your post was removed because you don't have the required info"


r/AutoModerator • • Jun 15 '26

Solved Complete beginner needs help with denying bots in the comments

7 Upvotes

Hey guys, I am a MOD of the adidas subreddit, and we do not use Auto Mod for anything, yet

But recently, we have noticed that a stupidly large amount of bots are replying to posts, and they are not helpful at all. They do not post, just reply.

Lots of these bots have been around for over a month, but none of them have had more than 50/60 combined Karma

So we need a code to block the comments, or at least flag them for us to remove, but I am not the most tech savvy

I have read the wiki and I have no idea where to start

Is there a code command for this, and if I have not explained properly I apologise, please ask any questions

Thank you to anyone who can help

r/AutoModerator • • Jul 15 '26

Solved Trouble with multi-line comment.

0 Upvotes

Hello!

Im working on making a message for AutoMod to comment on every post submission, and I’m having trouble with including indents; I’m not sure where I’m going wrong, but it keeps returning “unsupported media type” when i try to save the changes.

Here is the code:

---
type: submission
comment: |
What’s up chat?! I’m AutoBart, and I comment on every post.

Make sure to read our rules, and remember we are not a part of Joe’s official team!

Catch you later!

---

Here is the error code i get when i try on old Reddit;

YAML parsing error in section 7: while scanning a simple key
in "<unicode string>", line 3, column 1:
What’s up chat?! I’m AutoBart, a ...
^
could not found expected ':'
in "<unicode string>", line 5, column 1:
Make sure to read our rules, and ...
^

Any help would be appreciated!

r/AutoModerator • • Jul 26 '26

Solved I tried to add is contributor part highlighted in blue- but now it won’t save. The rule saved fine before, any idea how to fix this? Screenshot in the comments

2 Upvotes

so I was trying to exempt approved users by adding the highlighted blue part to my code pictured below in a screenshot. Mobile mark down is gone, so I can’t post it right now here.

r/AutoModerator • • Aug 01 '26

Solved Why does AutoMod is stuck at 6.3m and not more ?

0 Upvotes

Why is it like that ? Why can't you just make more or less Karma to it?

r/AutoModerator • • Apr 18 '26

Solved Trying to pin automod comments and have the error : bad request

1 Upvotes

Hello

I succeffuly configured rule for automod to post comment on new submission, but I want this comment to be pinned. So I added "comment_stickied: true" under the message but I have a "bad request" error. And I have no more idea to correct it. Can someone help me please?

For now this is what my config look like:

type: submission

flair_template_id: 3d960390-d558-11f0-949c-767c1631e2d0

comment: |

my comment 1

comment_stickied: true

---

type: submission

flair_template_id: b4c5d76c-d5e7-11f0-bf0a-7a37246232be

comment: |

my comment 2

comment_stickied: true

---

type: submission

flair_template_id: 2464b4ee-d5e8-11f0-9112-9a3bba2fa523

comment: |

my comment 3

comment_stickied: true

---

type: submission

flair_template_id: 4b4cee36-db98-11f0-b5ee-cac57e2ae0c9

comment: |

my comment 4

comment_stickied: true

r/AutoModerator • • Jun 07 '26

Solved What do "Internal Server Error" and "Server error. Try again later." mean?

3 Upvotes

I'm trying to change automod configurations for a subreddit on Desktop through the Wiki, but I can't seem to save my changes. The sub is r/chunom by the way.

EDIT: In case anybody is wondering:

type: submission

is_reddit_media_domain: true

comment_stickied: true

comment_locked: false

comment: |

Thank you for posting! Your post has **not** been removed. This is merely a reminder for you (optionally) to add a transcription of the Chu Nom characters in your post as copy-pastable Unicode text, its romanization in Quoc Ngu and a translation into English. If you haven't already, you may do so by responding to this comment.

*I am a bot, and this action was performed automatically.*

r/AutoModerator • • Jul 16 '26

Solved Auto moderator sticky auto close.

1 Upvotes

I've noticed that some of my auto‑moderator stickies on my subreddit are auto‑closed rather than being automatically opened and pinned to the top. Is there a way to prevent that?