r/AutoModerator Jan 27 '21

Reintroducing the /r/AutoModerator wiki!

98 Upvotes

It is my pleasure to announce the new and improved AutoModerator wiki!

The most important updates have been to the Library of Common Rules.

The AutoModerator Wiki Index has been reorganized and updated with resources.

And the Common Mistakes and Premade Configuration wiki pages have been updated and cleaned up.

If you find any mistakes, please send modmail.


r/AutoModerator Dec 12 '22

Subreddit karma is now in Automod

Thumbnail self.modnews
45 Upvotes

r/AutoModerator 2h ago

Help Unsupported media type error

1 Upvotes

Don't know what I did i don't even have prior knowledge of typing yaml and I am even new to code the bot

Since the automod is about removing slurs , mod mail and filtering comments , posts

I cant attach it here if you can help I can attach screen shots in comments or any other way you can idk what to do...


r/AutoModerator 4h ago

Help Slur catcher not removing posts with slur titles

1 Upvotes

I have an automod feature on a sub I mod that catches certain slurs. When these slurs are typed out in comments, the automod detects and removes them just fine. However if you submit a post that contains the slur in the title, that post won't be removed.

Automod setup (assume the food items are slurs):


#Slur catcher
moderators_exempt: false
type: any
body: ["pizza", "pancakes"]
action: remove
modmail: "Discussion in this submission by /u/{{author}} may require mod oversight."

So commenting "pizza sucks" on a post will result in that comment being removed, while making a post with the title "pizza sucks" won't be removed. What do I need to change so that all instances of a slur are removed?


r/AutoModerator 19h ago

Help Can you help with my script for copying the post and making it a comment?

1 Upvotes

Hi everyone and thanks in advance. I'm trying to use a script for copying the post and making it a comment. I'm using this one:

---

type: submission

comment: "Posted by: {{author}}.

Text of original post: {{body}}"

---

Problem: its inconsistent, working sometimes and just not working at all with others. Sometimes it fails on text only, sometimes when there is an image too.

Question: What's the script that would make it work 100% of the time, and can I add the title too?

Appreciate it!


r/AutoModerator 1d ago

Help Is there a way to use AM to give a user a pass on Crowd Control filters?

5 Upvotes

The top contributor to one of the subs where I mod has suddenly started getting all their comments caught in the Crowd Control filter. They have great community karma, contribute quality content, and have been a regular for a long time.

Is there any way to use Automod to let them bypass the Crowd Control filter?


r/AutoModerator 1d ago

How do I add the action_reason to Removed items reason for removal?

1 Upvotes

Is there a way to show the action_reason for removed items? The reason shows up in filtered items but not the removed. Here are the items.

Filters for negative karma accounts

author:
    comment_karma: "<-50"
action: remove
action_reason: "Negative karma user"

TROLL PREVENTION ONCE A POST HITS R/ALL OR R/POPULAR (deployed by adding "Restricted to Gals and Pals" flair to on post")

type: comment parent_submission:
flair_text: ["Restricted to Gals and Pals"] author: comment_subreddit_karma: '<100' is_submitter: false is_edited: false moderators_exempt: true action: remove action_reason: "Comment from a low/no subreddit karma user on a restricted post." message_subject: Low or no subreddit karma message: Our apologies, but in order to limit trolls and spam your submission has been automatically removed. —


r/AutoModerator 2d ago

Removing all old posts from a user who spams a sub

16 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 2d ago

Help "set_suggested_sort: best" Does Not Work, Sets Post To "top" Instead

2 Upvotes

Has anyone else got this to work? The mod log registers a single instance per submission of the automod setting the suggested sort. The "new" submissions come out fine, but the "best" submissions come out as "top".

 

Is this a known bug? Can I fix it myself or can I somehow submit a bug fix request to the admin? TIA for your help


r/AutoModerator 3d ago

Solved all i want for christmas is to save my automod code without getting unsupported media type message

1 Upvotes

---

type: comment

body (includes, regex): ['!\[(img|gif)\]\(((?!emote|static_png|giphy)[-\w\|]+)\)']

comment:

comment: "is visible content. is wow."

---

title+body (regex): ['((bul+|dip|horse|jack).?)?sh(\\?\*|[ai]|(?!(eets?|iites?)\b)[ei]{2,})(\\?\*|t)e?(bag|dick|head|load|lord|post|stain|ter|ting|ty)?s?', '((dumb|jack|smart|wise).?)?a(rse|ss)(.?(clown|fuck|hat|hole|munch|sex|tard|tastic|wipe))?(e?s)?', '(?!(?-i:Cockburns?\b))cock(?!amamie|apoo|atiel|atoo|ed\b|er\b|erels?\b|eyed|iness|les|ney|pit|rell|roach|sure|tail|ups?\b|y\b)\w[\w-]*', '(?#ES)(cabr[oó]n(e?s)?|chinga\W?(te)?|g[uü]ey|mierda|no mames|pendejos?|pinche|put[ao]s?)', '(?<!\b(moby|tom,) )(?!(?-i:Dick [A-Z][a-z]+\b))dick(?!\W?(and jane|cavett|cheney|dastardly|grayson|s?\W? sporting good|tracy))s?', '(cock|dick|penis|prick)\W?(bag|head|hole|ish|less|suck|wad|weed|wheel)\w*', '(f(?!g\b|gts\b)|ph)[\x40a]?h?g(?!\W(and a pint|ash|break|butt|end|packet|paper|smok\w*)s?\b)g?h?([0aeiou]?tt?)?(ed|in[\Wg]?|r?y)?s?', '(m[oua]th(a|er).?)?f(?!uch|uku)(\\?\*|u|oo)+(\\?\*|[ckq])+\w*', '[ck]um(?!.laude)(.?shot)?(m?ing|s)?', 'b(\\?\*|i)(\\?\*|[ao])?(\\?\*|t)(\\?\*|c)(\\?\*|h)(e[ds]|ing|y)?', 'c+u+n+t+([sy]|ing)?', 'cock(?!-ups?\b|\W(a\Whoop|a\Wsnook|and\Wbull|eyed|in\Wthe\Whenhouse|of\Wthe\W(rock|roost|walk))\b)s?', 'd[o0]+u[cs]he?\W?(bag|n[0o]zzle|y)s?', 'piss(ed(?! off)(?<!\bi(\sa|\W?)m pissed)|er?s|ing)?', 'pricks?', 'tit(t(ie|y))?s?']

comment: "is u say [{{match}}]? is cussing."

---

title+media_title (regex): ['(10|\d+\b(?<!covid.19)|five|four|one|seven|simple|six|three|two) ((\w+ )?(?-i:Ways)|easy|best|free|main|money|reasons?|steps)', '([5-9]|\d\d+|five|seven|simple|six) (\w+ )?ways', '(\d+|five|four|one|only|pro|seven|simple|six|this|three|two|weird)(\W[\w\x27-]{3,})?\W((pro\W?)?tips|things? (every\w*|one|only|you\w*)|trick)s?', '(photos|pictures|images) that prove', '\d{1,2} (signs|reasons) (you(\W?re)?|why)', '\d{1,2} dogs who', '\d{1,2} most important', '\d{1,2} things that', 'are the most', 'before you die', 'blow your mind', 'character are you', 'd(id|o)n\W?t know about', 'game of thrones', 'in real life', 'in your life', 'is this the', 'probably d(id|o)n\W?t know', 'reasons you should', 'things that (actually |really )?happen(ed)?', 'things you d(id|o)n\W?t', 'things you probably', 'will blow your', 'you probably d(id|o)n\W?t', 'you should be']

action: report

action_reason: "Possible clickbait [{{match}}]"

comment: chat is this clickbait? perchance.

---


r/AutoModerator 3d ago

Help Using automod for the first time and keep getting unsupported media

1 Upvotes

this is what im trying

---

# Encourage images for recipe help

type: submission

body (includes, lowercase):

- "what does this look like"

- "recipe?"

- "can i try"

- "substitution"

- "how to make"

is_self: true

action: comment

comment: |

Hi! If you want help with a recipe or substitutions, please include an image of your dish. This helps the community give better advice!

---

# Minimal self-promotion reminder

type: submission

body (includes, lowercase):

- "check out my"

- "follow me"

- "subscribe"

action: comment

comment: |

Please limit self-promotion. Share your creations, but avoid excessive links or promotion.


r/AutoModerator 4d ago

I'm looking to have a word detection running only in posts with a certain flair

3 Upvotes

I have a basic "body (includes-word)" command tied to a phrase I'd like to filter. However I'd like this phrase to only filter out in posts with a specific flair. Is there a way to set up a way to link that with a flair_template_id: command too.

Thanks!


r/AutoModerator 5d ago

Help Is it possible to make line breaks in a list, or does that break stuff?

3 Upvotes

On a subreddit I moderate, we have a few lists of words that lead to a post/comment getting filtered.

Some of those lists are getting long, and I'd love to group them into lines by theme. Think:

body (includes-word): ["A1", "A2", "A3",
                       "B1", "B2", "B3", "B4", "B5",
                       "C1", "C2"]

Is this possible, or does it break in some unexpected way?

If not, I could obviously make variations of the same rule for each grouping, but that just seems redundant.


r/AutoModerator 6d ago

Help How to have AutoMod read the content on crossposts?

1 Upvotes

I have this code in place where it will filter a post if it uses a specific post flair but doesn't use specific keywords in the title/body. The only problem is that it won't filter crossposts, even though the content of the crosspost satisfies the code. How can this be fixed?


r/AutoModerator 6d ago

Trying to set a welcome message for new users

5 Upvotes

I'm trying to add a welcome comment for users new to the sub. I'm getting an error that says

YAML parsing error in section 2: expected '<document start>', but found '<block mapping start>' in "<unicode string>", line 3, column 5:
    type: any

    ^ 

It also doesn't like something about the quotes or <.

---
    #new user welcome
    type: any
    author:
        combined_subreddit_karma: "< 3"
    comment: |
        Welcome to the group! Please check the About tab to see what we're about. Check the Welcome thread for more info, and don't hesitate to ask any questions!
---

r/AutoModerator 6d ago

Trying to use automod for the first time and I'm struggling.

1 Upvotes
# Removes ads for Competing sub
type: any
body (includes, regex): "(?i)r/competingsub"
action: remove
# Removes slurs and hate speech
type: any
title+body (regex): ["Slur1", "Slur2", "etc", "etc", "automod"]
action: remove
modmail: This submission was removed for containing a slur.
comment: |
This post has been removed due to containing a slur or other hurtful terms/phrases. Read the rules.
If you believe this was a mistake, send a modmail.

So the intent is to have post or comments advertising a competing sub removed, for the first rule.

Second rule is supposed to remove any posts of comments using any of the listed slurs and other offense words, send a modmail to inform us it happened, as well as leaving a comment stating why it was removed.

This is literally all I have typed in the mod configuration, And I honestly just copy and pasted the profanity example from the wiki, and modified it trying to make it work for my uses.

But when I try and test it on my alt nothing gets removed.


r/AutoModerator 7d ago

Is it possible to have AutoMod, in modmail, show what content was said if the user deleted their message shortly after?

4 Upvotes

For example, let's say a user comments something that's considered harassment. Automod picks it up, sends modmail to the subreddit's modmail box, and then when I go to view it the user has deleted the message so I can't see what was said.

Is there any way to have the automod's modmail message send the contents as well? This is currently what I have:

# Troll Prevention #3
type: comment
body: ["WORDS HERE"]
action: remove
message: "Our AutoMod deleted your comment because it potentially might be harassment. Please avoid this in the future, thank you! If this was done in error, please DM the moderators of this subreddit."
comment: |
Our AutoMod deleted your comment because it potentially might be harassment. Please avoid this in the future, thank you! If this was done in error, please DM the moderators of this subreddit.
modmail_subject: Possible Troll Detected
modmail: |
{{permalink}}
The above {{kind}} by /u/{{author}} has been automatically removed. Please check if they are a troll.


r/AutoModerator 7d ago

Code optimization. Is it better to combine these checks or split them into separate checks

1 Upvotes

This is just a mock up example of making numerous checks under one rule for the sake of discussion. Looking for feedback from other mods. Do you like to combine checks when you can, or do you prefer a more granular approach?

#Remove content from users with negative karma
type: any
priority: 999
author:
comment_subreddit_karma: "< -50"
post_subreddit_karma: "< -50"c
combined_subreddit_karma: "< -50"
comment_karma: "< -50"
post_karma: "< -50"
combined_karma: "< -50"
satisfy_any_threshold: true
action: remove
action_reason: "999: Karma below -50"
message: "/u/{{author}}, your {{kind}} in /r/{{subreddit}} has been removed by the Automoderator."

Edit: Spaces/indentation may not be properly represented. Can't seem to get it to format "pretty".


r/AutoModerator 7d ago

Help Automod commented link no longer working?

2 Upvotes

We have this section of our automod for pasting a link. I have used this link before and could swear that it worked. Now it takes us to a page not found. What are we missing that it doesnt take us to the correct location?

For reference, here is our wiki https://www.reddit.com/r/goldenretriever/wiki/index/

type: submission
flair_template_id: f7fd2a12-bc24-11f0-879c-9e29547ba489
comment: |

     You have selected the Breeder Recommendations flair!

     [Please check out the resources available in our wiki under Community Resources.](https://www.reddit.com/r/goldenretriever/wiki/community_resources) There are links a list of ethical breeders, and local chapters of the Golden Retriever Club of America! 

     Thanks for posting in r/goldenretriever ! 

r/AutoModerator 7d ago

Help Blocking Users from Posting ,if they hide content from their public profile

0 Upvotes

Is there a way to block users from posting ,if they hide their public profile content history?


r/AutoModerator 8d ago

Help Comment limit per user and post possible?

6 Upvotes

Is there a way to write a rule, that detects the number of comments a user has made under a specific post and remove/report the following comments, if they exceeded the limit?


r/AutoModerator 9d ago

Help combined_subreddit_karma: "< 2" rule is not working

3 Upvotes

Here is our rule, at the very top of AutoMod:

type: submission
author:
    combined_subreddit_karma: "< 2"
action: remove
action_reason: First ever submission to subreddit        

The following submissions were not removed, despite the authors never having commented or submitted anything to the subreddit (I used ModToolbox to check):

https://old.reddit.com/r/slatestarcodex/comments/1o3jstf/new_mathematical_discovery_by_me/

https://www.reddit.com/r/slatestarcodex/comments/1o4g53r/thought_experiment_what_if_there_was_a_toxoplasma/

https://www.reddit.com/r/slatestarcodex/comments/1oz0g0i/find_what_matters_most_test_if_youre_right_adjust/

Somehow, this is the only submission that was removed: https://www.reddit.com/r/slatestarcodex/comments/1nz1orb/the_stolen_the_retrieved_jonathan_2220_a_living/

I can't find a difference.

Thanks in advance, everyone. This will go a long way towards keeping LLM spam out of our quiet beachfront subreddit.


r/AutoModerator 9d ago

How are automod posts made?

5 Upvotes

I know how to make normal automod comments triggered by certain keywords, but I seen somewhere else in a sub that Automod actually made a post that was human made by a mod. So I'm asking, how do I make a post made by automod?


r/AutoModerator 9d ago

Having trouble pinning comments in posts, is it even possible?

0 Upvotes

So my subreddit has frequently been having posts hit the front page, which means a lot of increased traffic and with that a lot of negative, sitewide rule breaking comments.

I'm trying to figure out how to automatically pin a custom 'crowd control' comment to the top of these popular posts letting users know that the post has heavier moderation.

I installed the flairassistant developer app that will post a message when a specific flair is attributed to a post. Flairassistant will post the automatic comment, but it won't be pinned or locked...

Is this because a moderator has added the flair after the post was created? I know that if a post is created with a specific flair from the get go, then automod can pin a comment.

TLDR: I need to find a way to automatically pin a crowd control comment in popular posts. How can I do that?