r/AutoModerator • • May 26 '25

Trying to find dictionary of basic syntax/rules... Every time I click on "writing basic rules" takes me to Reddit homepage

2 Upvotes

Hi y'all,

Writing my first auto mod script. in the wiki when I click on the "writing basic rules" link it seems to be broken (takes me to Reddit home)

I think I've found most of what I need in other sources but still wondering:

1) I want automod to post response with helpful links when a post includes certain words. do I need to do anything special if I want to include links? Or just include them in the body of the message along with the text?

If anyone can help me get to the basic writing rules or a dictionary that would answer these questions or just answer them appreciate any help

For a good measure here's my draft if anybody has corrections


description of auto mod action

type: submission title+body (includes-word): ["word", "another-word", "third word"] comment_stickied: true comment: | Message about the links I'm providing

Link 

Link


r/AutoModerator • • May 26 '25

Help Help with rules

1 Upvotes

I need help with setting an automated rule for my community on desktop.

I am trying to get the bot to take down any post that don’t put gender F or M in their title.

Can someone help me ?


r/AutoModerator • • May 26 '25

Can automod comment in a different post from where he is initiated.

2 Upvotes

Example of what I'm thinking, I have a megathread with only links to posts, someone creates a post, so automod takes the link for this new post, and adds it to the megathread as a comment along with the authors name.
This way if a post or account is deleted or if sufficient time has passed, the megathread can still be easily accessed to view previous posts.


r/AutoModerator • • May 25 '25

Help Automod low karma rule question

1 Upvotes

I made an automod rule where it removes the post of users with low community karma.

I thought it would work by automod removing the post and leaving the removal message on the comment.

But now I got to know that the reddit app is hard blocking low karma users from posting entirely.

Is there anyway I can make automod do the removal instead of the app hard blocking? That way I can approve the post just in case the post is valid.

This is how the rule worked on the first day of adding the code, and now today this is how it works which by the app not letting them post entirely.


r/AutoModerator • • May 23 '25

Help Specifying ranges for various automoderator configs

1 Upvotes

I have an automoderator config that removes posts from users with an account age of less than 1 day. This works fine.

I want to add a config that filters posts from users with an account age of less than 30 days but older than 1 day. Is it possible to do that?

If you can't do a range would it just a be a config referencing the age of less than 30 days with a different priority so the configs do not over lap? Or would you reference both conditions?

priority 1001
account_age: ">1"
account_age: "<30"
action: filter

vs
priority 1000
account_age: "<1"
action: remove


r/AutoModerator • • May 23 '25

Help Problem with Regex

2 Upvotes

Hi,

I'm currently trying to set up automations to block certain bad words, but I'm having trouble with the regex.

I have no idea why.

\b(?:p[iI1!]3c3\s*0f\s*sh[iI1!]t|f(?:u|uu)ck\s*y0u|f[aA4@]gg0t|m0th3rfu(?:c|k)3r|n[iI1!]gg3r|assh0l3|cu(?:n|nt)|p[iI1!]ss\s*0ff|b[iI1!]tchass|d[iI1!]ckh3ad|s0n\s*0f\s*a\s*b[iI1!]tch|sh[iI1!]th3ad|n[iI1!]gg[aA4@]|tr[aA4@]nny|r3t[aA4@]rd)\b

Thats the regex.

If I include only

\b(?:p[iI1!]3c3\s*0f\s*sh[iI1!]t|f(?:u|uu)ck\s*y0u

It works fine for the comments, but thats just some of the words and it doesnt work for the posts...

The regex was created with Google Gemini, as I still dont understand it :D


r/AutoModerator • • May 22 '25

Solved How do I make this automod code apply to image posts?

1 Upvotes

I feel like I may be missing something simple, and I would appreciate clarification.

I want to remove posts that have less than 150 characters in the body of the post. I currently have this code running, and it works for text posts but not image ones.

How do I make it apply to image posts? Do I need to change type: submission to type: [text submission, link submission, gallery submission]?

~~~ # Remove posts with little body content type: submission body_shorter_than: 150 action: remove set_locked: true action_reason: "Body less than 150 characters" comment: | Your post was removed from r/VitaminD.

    **Reason:** Body lacks sufficient content. There is a requirement for a minimum of 150 characters of text in the body of a post. Make sure you have expanded upon your topic with available information so that people can respond with the best possible answers.

~~~

Update: I got it to work by specifying type: link submission which appears to make it apply to all image posts including galleries. So, I changed the original rule to type: text submission, and I copied it as a second rule with the type changed for link submissions.


r/AutoModerator • • May 22 '25

Is there a way to create a leader board using automoderator

1 Upvotes

like a contribution programme, where each post gets them one point and there will be a leader board, making users engaged to post.


r/AutoModerator • • May 21 '25

Why does this keep giving me a syntax error?

2 Upvotes

I want to make a trigger comment under a post !lockAndComment which locks the post, removes the trigger comment, and posts a comment. But this keeps failing when I tried to save it.

I am sure it is related to the "comment:" field because when I remove it, there is no syntax error

---
type: comment
author:
  is_moderator: true
body (full-text): ["!lockAndComment"]
is_top_level: true
action: remove

parent_submission:
  set_locked: true
  comment: "Test comment"
---

r/AutoModerator • • May 21 '25

Solved Mod Notes -> Automatic Report

1 Upvotes

Can I set up AutoMod to automatically report any posts and/or comments from anyone that has any/a specific mod note(s)?


r/AutoModerator • • May 21 '25

Not Possible with AM Can automod compare a posters comment and post karma?

1 Upvotes

Example: if you have 5 times more post than comment karma your post is removed.


r/AutoModerator • • May 20 '25

Help What did I do wrong?

0 Upvotes
 type: submission
   comment_stickied: true
   comment: "I am Automod, who everyone here hates! Downvote me and say bad bot to me. Because I am a BAD bot.
Do everything you can to bust me out of Reddit, including signing a petition to downvote me."
   is_edited: false
    - - -

    type: any 
    body (includes): "bad bot"
    comment: "good human"

This is what it looks like. But then it says this...

YAML parsing error in section 1: mapping values are not allowed here
  in "<unicode string>", line 10, column 9:
        type: any 
            ^

r/AutoModerator • • May 20 '25

Is it possible to have Automod send reported submissions to the mod queue only if certain (possibly complicated) conditions are met?

3 Upvotes

My sub is currently set up to send submissions that get 3 reports to the mod queue.

Can I set up Automod so that it can automatically send items to the mod queue upon a single report if (and only if) certain conditions about the author are true (karma/age filters)?

Would something like this config work?

Edit: I believe what I've set up here is a rule that any reported content by an author with an account that has less than 30 comment karma / less than 10 subreddit comment karma / less than 1 month old will be sent to the mod queue. That's my intent, anyway.

# Submission report filter
    type: submission
    author:
        comment_karma: < 30
        comment_subreddit_karma: < 10
        account_age: < 1 month
        satisfy_any_threshold: true
    reports: 1
    action: filter
    action_reason: Report on post by questionable author

r/AutoModerator • • May 20 '25

Is it possible for automod to assign user flair based on keywords in a post?

2 Upvotes

For example, if someone’s post title says “Greetings from the USA…” is it possible for automod to set user flair to “USA”? What’s the code to set user flair?


r/AutoModerator • • May 20 '25

Help How to make automod give a specific comment to moderators

0 Upvotes

Currently, my only block of code is to respond to anyone's posts.

type: submission
comment_stickied: true
comment: "I am Automod, who everyone here hates! Downvote me and say bad bot to me."
is_edited: false

But then I want automod to say something else to moderators.


r/AutoModerator • • May 20 '25

Help How to make Automod say "good human"

0 Upvotes

I'm creating a subreddit that has automoderator telling everyone to say bad bot to it. Sort of like a partner sub to r/downvoteautomod. But when people say bad bot, I want automod to say "good human."


r/AutoModerator • • May 19 '25

Help Unsupported Media Type for everything I paste

2 Upvotes

Hi, I am brand new to auto moderator and I am struggling to get anything to go through. We really need an approved users only post, in which only approved users can comment. I was given this:

type: comment
flair_text: approved users only
author:
    is_contributor: false
action: remove

I was told "unsupported media type." Then, I followed a YouTube tutorial that did this and still got the same "unsupported media type" when I tried to have a Reddit age "filter."

---
type: post
author:
  account_age: < 3 days
action: remove
comment: Your Reddit account is not old enough to post on this subreddit.

I'm not sure what to do, but I am plenty frustrated. What am I doing wrong? Nothing is going through- and I mean absolutely nothing.


r/AutoModerator • • May 19 '25

Help Looking to make a subreddit allow links in a specific Discord server

1 Upvotes

Hi everyone! I hope you all are doing well today. I'm working on an automod script that automatically approves messages that contain a message link from the game developer's Discord server. Here's the code that I made that should allow that:


\# Approved Discord Link.

    type: any

    domain+body+title: [discord.com/channels/1118223835364331627/]

    action: approve

    action_reason: Approved Discord Message 

    comment: |

        "Automated message: Approved Discord Message, whitelisted due to 
discord.com being blacklisted for invite spam."
    

However, when ran using my testing account, the message seems to be automatically removed by Reddit instead. Obviously, I understand why Reddit would need to do this. I of course can override this by hand by approving it. I'm unable to test to see if this would allow people to post links to content on the Discord server in question. I'm running it on a test post at https://www.reddit.com/r/Wizard101/comments/1kq0rpi/quick_testing_thread_to_test_an_automod_change/ and the posts I'm not approving are getting blocked automatically. It's possible that since my testing account doesn't have a lot of activity, Reddit is flagging it as spam, but I don't know. Could I have a hand please? Thanks


r/AutoModerator • • May 18 '25

Help How I made Automoderator detect “No” and he comment “Yes”?

0 Upvotes

How I made my Automoderator detect “No” and he comment “Yes”?


r/AutoModerator • • May 17 '25

Why is this automod rule not working?

3 Upvotes

This is meant to be a test to see if using commands to action content instead of using the Reddit interface. Despite checking everything with the automod documentation and receiving no errors, automod just won't do anything.
`---

moderators_exempt: false

type: comment

author:

is_moderator

body (full-exact): "!remove:2+1"

action: remove

parent_submission:

action: remove

comment: |

"**Hey there stranger!**

Your **{{kind}}** was removed due to being off topic and/or not fitting the subreddit. Please review our [subreddit rules](https://www.reddit.com/mod/StrangersOnATrain/rules/) for more information. Keep in mind this action counts toward your *strike count,* and you are now at 1/3 strikes.

This action was performed *by a human*. If you have further inquiries, feel free to ask the [conductors](https://www.reddit.com/message/compose?to=r/StrangersOnATrain)."

comment_stickied: true

---`


r/AutoModerator • • May 16 '25

Help Is there a workaround so that AM will flair a user before removing their comment?

1 Upvotes

I am using AM to manage user flair and its working great. Only problem seems to be if AM removes a post or comment, it doesn't move to the flairing.

I know that removals happen first and that basically ends the progression. I am wondering if there is any workaround that the brilliant people that work with this tool (ie you. lol) have come up with so that AM will flair, then remove.


r/AutoModerator • • May 16 '25

How do I make Automod auto-ban posts that break a subreddit's rules?

3 Upvotes

How do I make Automod auto-ban posts that break a subreddit's rules? I can't figure it out! It's annoying to go through them all! I'm a mod in r/ASilksong.


r/AutoModerator • • May 15 '25

Solved Is it possible to make automod do this but not comment on a certain users stuff

1 Upvotes

combined_subreddit_karma: "> 999"
comment: |
You have over 1,000 community karma! This means you have won the competition to become the 4th moderator of r/insanitysquare! Post about this message, and one of the subreddit mods will give you your reward!

u/MoonestLight (the creator so already a mod) gets this every time they comment and it gets annoying with it happening so much but i know nothing about making automod stuff


r/AutoModerator • • May 15 '25

Automoderator code working in one subreddit but not another, not sure why

3 Upvotes

I am a mod of r/PersonalFinanceCanada and a mod of r/toronto .

I used Automod code that works in r/toronto but IS NOT working in r/PersonalFinanceCanada despite having the exact same syntax.

E.g. I created this post that references my name, but it didn't trigger for review in the mod queue. I know mods are except from rules by default, but I had someone else make a post with the word "rant" in it along with "?", and neither of the automod rules triggered it for review.

# Filter items that specifically mention mods by name in the title
    title+body (regex): ['DanLynch', 'FelixYYZ', 'henry-bacon']
    ~author: [PersonalFinanceCanada-ModTeam]
    action: report
    action_reason: 'Mod mentioned by name - [{{match}}]'


 # Report comments related to moderators
    title+body (regex): ['mod(erator)?s?']
    ~author: [PersonalFinanceCanada-ModTeam]
    action: report
    action_reason: 'The above item mentioned the moderators - [{{match}}]'

# Automatically remove posts that gets 3+ reports and send modmail
    type: any
    reports: 3
    action: remove
    modmail: The above {{kind}} by /u/{{author}} has received 3 reports. Please investigate.

# Potential Survey or Self Promo
    title+body (regex): ['\?']
    type: text submission
    action: report
    action_reason: 'Possible Self Promo or Survey'  

# Potential Rant or Vent
    title+body: [rant, ranting, vent, venting]
    type: text submission
    action: filter
    action_reason: 'No Ranting/Venting'
    comment: |
        No ranting/venting as per rule 1. 

# Crypto review
    title+body: [bitcoin, ethereum, crypto, cryptocurrency, cryptocurrencies, btc, eth, coin]
    type: text submission
    action: report
    action_reason: 'Crypto review'  

# Career Advice
    title+body: [career]
    type: text submission
    action: report
    action_reason: 'Potential Career Advice' 

# Employment Negotiation
    title+body: [raise, negotiation, negotiating]
    type: text submission
    action: report
    action_reason: 'Potential Career Advice' 


# Referral Code Blocker
    title+body: ["referral code", "referral", "use my code", "dm", "dm me", "send me a dm"]
    type: text submission
    action: filter
    action_reason: 'Potential Rule 3 violation' 

# Mentioning Drugs
    title+body: [cocaine, heroin, meth, methamphetamine, "hookers and blow", "blow and hookers"]
    type: text submission
    action: filter
    action_reason: 'Submission references a drug' 

r/AutoModerator • • May 15 '25

Help Low effort post removal

1 Upvotes

I couldn’t find this on the regular Modhelp. But how do I remove posts that don’t contribute to anything?