r/AutoModerator • • Apr 26 '19

Avenger's End Game Spoiler Prevention Code

43 Upvotes

Here's some code I put together to attempt to prevent Marvel / End Game spoilers. Obviously this won't catch everything and people can still get around it, but at a minimum, it should prevent any spoiler copy pasta from being posted. If you feel any modifications should be made to this, please let me know. For those new to AutoMod, you should be able to copy the code below into your AutoMod config without needing to make any changes.

Note: There should be no spoilers within the code below. It is essentially a massive list of Marvel characters/items/actors.

---

    # Avengers End Game Spoiler Prevention
    type: any
    title+body (regex): ['((doctor|dr\.?|incredible|proff?.?|proff?ess?or|she|the).?)?hulk', '(?-i:The (Collector|Hand))', '(?<!.{80})(?<!\bmy )(?<!\byour )end\W?game', '(?<!\ban )abomination', '(car|mar).vell?', '(defenders|avengers).?assembled?', '(doctor|dr)\.?\W?(doom|octopus)', '(doctor|dr\.?|hank|professor) p(i|y)m', '(happy|harold).?hogan', '(hope|hank|janet).?(v(a|o)n.?dyne|pym)', '(infinity|reality|soul|mind|space|time|power|stark).?(stones?|gems?|jewels?|gloves?|gauntlets?)', '(natash|natali)a?.?romano(va?|off)?', '(nick|nicholas).?fury', '(prof?f?.?|doc.?|professor|dr\.?|doctor|master|sorcerer|wizard|ste(ve|phe)n?).?strange', '(rocky|ranger|r(ock|ack|atch)et).?(the.?)?(racc?oo?n|rabb?it)', '(soul|power|reality|time|space|mind)\W?stones?', '(super|the)?s(c|k)rull?s?', '(super|winter).?soldier', '(the.?)?(dead|defeated|great|mad|purple).?titan', '(the.?)?kree', '(the\W?)?avengers?', '[ck]lement[ie]+f+', 'ancient.?one', 'ant.?man', 'ass?gu?ard(ian)?', 'benedict.?cumberbatch', 'big.?green.?guy', 'black.?(panther|widow(?!.?spider))', 'br[ie]{1,2}.?lars[eo]n', 'bradley.?cooper', 'brock.?rumlow', 'bruce.?bann?er', 'bucky(.?barnes?)?', 'cap([^i]\w*)?\W?(america|britain|marvel)', 'carol.?danvers?', 'chadwick.?boseman', 'chris\w*.?(evans|hemsworth)', 'clint(on)?.?barton', 'colossus', 'corvus.?gl[ai]+ve', 'cross.?bones', 'cull.?obsidian', 'daredevil', 'dark.?(patriot|phoenix)', 'deadpool', 'don.?cheadle', 'drax', 'dyne', 'ebony.?maw', 'eitri', 'elektra', 'elizabeth.?olsen', 'enchantress', 'enigma.?force', 'falcon', 'gamorr?a', 'gaunt', 'god.?of.?(mischief|thunder|trick)s?', 'gotg', 'grandmaster', 'green.?goblin', 'green.?rage.?monster', 'groo+t', 'guardians?.?of.?the.?galaxy', 'harley.?keener', 'hawk.?eye', 'heimdall', 'hela', 'heli.?carrier', 'howard.?the.?duck', 'hulk(ling)?', 'infinity.?(stones?|war)', 'iron.?fist', 'iron.?man(?!.{0,60}\b(training|triathlon))', 'iron.?patriot', 'iron\W?lad', 'james.?rhodes', 'jeremy.?renner', 'jigsaw(?!.puzzle)', 'josh.?brolin', 'kamar.?taj', 'karen.?gillan', 'kingpin', 'klaw', 'korg', 'lady.?sif', 'life.?model.?decoy', 'loki', 'luke.?cage', 'm.?baku', 'mantis', 'maria.?hill', 'mark.?ruffalo', 'marvel.?trinity', 'marvel\W?girl', 'meik', 'miss.?america', 'mjolnir', 'mr?s\W+marvel', 'mystic\W?arts', 'natasha', 'nebula(?!.award)', 'nick.?fury', 'nightcrawler', 'odin', 'odin\W?son', 'okoye', 'p(i|y)m\W?particle?', 'paul.?bettany', 'pepp?er.?pott?s?', 'peter.?(parker|quill)', 'professor\W?power', 'professor\W?x', 'proxima.?midnight', 'punisher', 'pym',  'quicksilver', 'red.?skull', 'rhodey', 'ring\W?portal', 'rob\w*.?downey', 'rocket.?raccoon', 'romanoff', 'ronin', 'sam(uel)?.?wilson', 'sanctuary.?(space|star)?ship', 'scarlett.?(johansson|witch)', 'scott?y?.?lang', 'sean.?gunn', 'shuri', 'silver.?surfer', 'sling.?(ring|portal)', 'sorcerer.?supreme', 'spider.?(wo)?man', 'stan\W?lee', 'star.?lord', 'ste(ve|phe)n?.*rogers?', 'storm.?breaker', 't(homas|om).?(hiddleston|holland)', 't.?chall?a?', 'thaddeus.?ross', 'thanos', 'the\W?(mandarin|snap|wasp|watcher)', 'thor', 'thor\W?girl', 'thor\Ws?.?hammer', 'thunder.?god', 'tilda.?swinton', 'tinkerer', 'tony.?stark', 'ultron', 'valk\w*r\w*[eiy]s?', 'van.?dyne?', 'venom', 'vibranium', 'victor.?shade', 'wakandan?s?', 'wanda.?maximo(ff?|v)', 'war.?machine', 'warlock', 'white.?wolf', 'winter.?soldier', 'wolverine', 'x\W?m[ae]n', 'zoe.?saldana']
    action: remove
    action_reason: 'Possible End Game Spoilers'
    modmail_subject: 'Possible End Game Spoilers'
    modmail: 'This [{{kind}}]({{permalink}}) has been removed due to being detected as possible Avengers: End Game spoilers (it contained keyword: >!{{match}}!<). Investigate at your own risk to confirm that this action was not made in error.'

---

Edit 1: Removed the following code in order to prevent trolls from being notified that their posts were removed. However, I've left the modmail notification so that mods can double check that the code is working appropriately (at your own risk).

    message_subject: 'Possible End Game Spoilers'    
    message: 'Your [{{kind}}]({{permalink}}) has been removed due to being detected as possible Avengers: End Game spoilers. If you believe this action was made in error, please [message the mods](https://reddit.com/message/compose?to=/r/{{subreddit}}).'

Edit 2: Thanks to an anonymous contributor, I've updated the regex to a much more thorough and complete list!

Edit 3: Thanks for the gold!


r/AutoModerator • • Mar 06 '15

Mod Post This morning's AutoModerator downtime

42 Upvotes

Now that I'm finished frantically scrambling, I just wanted to make a post to explain what happened to cause about 6 hours of downtime today, and primarily to apologize for it.

This was completely, entirely, 100% my fault. There was a scheduled reboot of the server that AutoMod runs on (which isn't associated with reddit) this morning by the provider company. I was notified about this a few days ago, I knew it would require AutoMod to be manually started up again when it happened, and I was expecting to need to do that this morning. The only problem is that I completely misread the time zone on the notification, and was planning to be ready for it about 7 hours later than it was actually going to happen.

So now that AutoMod's running again, here's the details about what will happen for anything that should have happened during the time it was down:

  • All submissions will be processed retroactively (so if you use AutoMod to set link flair for all incoming submissions or something, it should get all of the ones from during the downtime)

  • Any comments more than an hour old won't be processed (unless they get reported). I didn't want it to be going back and removing comments that had already been up for multiple hours, and that large of a backlog would also cause it to take a lot longer to catch up to new things.

  • All scheduled posts from during the downtime should have been made now, I believe (please correct me if I'm wrong and any were missed)

I think that should cover it, but please let me know if there's anything else that should have happened during the downtime that I need to make happen as well. And I apologize again, time zones have once again proven themselves to be one of a programmer's worst enemies.


r/AutoModerator • • Feb 22 '12

Mod Post What is AutoModerator?

42 Upvotes

AutoModerator is a bot designed to automate various moderation tasks that require little or no human judgement. It can watch the new/spam/comments/report queues of any subreddit it moderates and take actions on submissions and comments based on defined conditions. This includes approving or removing them, sending alerts to modmail, etc. It is effectively fairly similar to reddit's built-in spam-filter, but allows for conditions to be defined specifically instead of just giving vague hints by removing/approving. Its decisions can always be overridden by human mods, exactly like the existing filter.

Common uses of AutoModerator

  • Approve all posts to the subreddit - effectively disables the spam-filter

  • Send an alert to mod-mail when a submission or comment receives a few reports - often set at 2 reports for small subreddits, and 4-5 for larger ones

  • Automatically remove a submission/comment that receives an extremely high number of reports (so it's most likely a serious problem) and send a mod-mail alert so the action can be verified as correct - often set at 5 reports for small subreddits, and 10-20 for larger ones

  • Ban domains from the subreddit completely

  • Automatically approve all self-posts or all submissions from certain "white-listed" domains

  • Remove all image/meme posts

  • Remove submissions where the title contains certain words or phrases

  • Automatically report submissions or comments containing certain words or phrases

  • Remove submissions where the title does NOT match a certain pattern - for subreddits that have required "tags" or strict title style rules

  • Automatically remove comments containing links to certain sites - blocks piracy-related links, affiliate links, etc.

How do I use it in my subreddit?

Please follow the instructions here: https://github.com/Deimos/AutoModerator/wiki/Initial-wiki-setup

If you have any questions, feel free to post in /r/AutoModerator and someone should be able to help you out.


r/AutoModerator • • Feb 08 '26

Help Photos in removal reasons

41 Upvotes

I saw another subreddit using photos in removal reasons with automod.

I’ve tried asking the specific subreddit but they were *not privy to sharing as they said it gave them a sense of superiority, odd answer but everyone’s welcome to do as they please. So I didn’t push any further, they don’t want to share that is fine. ☺️

So my question is does anyone here know how to add pictures to automod removal reasons?

If you DM I can send a screenshot showing the example of what I’m talking about, I don’t want to link it here and accidentally break MCOC by talking about other subs as what reddit sees as “meta” can be rather subjective in my moderating experience.


r/AutoModerator • • Jan 05 '17

Solved Happy Cakeday Automoderator

40 Upvotes

Sorry for shitposting your subreddit. I saw the cake and had to say something. Happy cakeday /u/AutoModerator /u/Deimorz

That is all.


r/AutoModerator • • May 31 '21

Automod removing posts from regular users in r/SrGrafo

38 Upvotes

r/AutoModerator • • Apr 27 '19

/r/4chan is using AutoMod to PM Endgame spoilers to everyone who comments on the sub. You should suspend their access to the bot for that tbh.

37 Upvotes

I've already seen the film so inb4 someone calls me triggered or whatever, I just think it's a shitty thing to do and I know I wouldn't want my bot being used to do it.


r/AutoModerator • • Aug 06 '26 Bravo

Devvit Showcase I made an app to replicate AutoModerator, but with extra features on top

36 Upvotes

You've probably seen the news recently about changes to dev tooling, and one of the big rumours floating around is that Automod may not exist in the longer term.

I started hearing rumours about this a couple of months back and got to work replicating AutoModerator's feature set (at least anything that the Devvit API could possibly support, which is nearly everything), adding a whole bunch of features on top:

https://developers.reddit.com/apps/automod-neo

Most Automod rules will work out of the box with my new app. Some might need some tweaking especially due to differences between Python and JavaScript regex.

The biggest limitation now is I can't support action_reason in the mod log. I'm hoping that Admin will add that capability in the future. But there's a lot more added - all visible on the app's readme.

Because this is such a new app there may be issues - so if you try this out do so carefully (in particular I recommend not having the same rule in both AutoModerator and Automod Neo). The biggest benefit for now is rules that simply can't be done using Automod right now that would need the new features.

I'd be especially interested in knowing any other ideas for features that I could add!


r/AutoModerator • • Jun 04 '26

Guide Using AutoModerator for videos in comments is like other media in comments

36 Upvotes

Your mod team likely recently (today) got a modmail notification from admins about the new feature rolling out for Videos in Comments.

Many moderators may be wondering how to report or filter comments which contain uploaded videos, in cases where your team wants to consider monitoring them closer or with greater scrutiny, or restrict their use to appropriate posts or trusted authors.

Fortunately, this is possible with AutoModerator. Unfortunately, the OP of the post on r/modnews was unaware at the original time of the announcement, and their comment about it was downvoted out of visibility before later editing in the example code.

Conveniently, this relies on the same kind of RegEx check that is already documented for both video embeds in text posts (July 2022) and for other media in comments (Oct 2022).

Here's the RegEx check:

body (includes, regex): '!\[video\]\([^)]*\)'

What this check is looking for is a string of the form:

  • ![video](uniqueidentifier)

This is similar to the other media in text posts and comments, which simply use [img] and [gif] in place of [video]. In fact, if you wanted to expand your current AutoModerator rules that apply to gif or images in comments to also apply to videos in comments, then you would want to use a RegEx like this:

body (includes, regex): '!\[(video|img|gif)\]\([^)]*\)'

Here are a few example rules:

---
# Report videos in comments
type: comment
body (includes, regex): '!\[video\]\([^)]*\)'
action: report
action_reason: "Video in comment detected, please review."
---
# Filter videos in comments if they get 2 reports
type: comment
body (includes, regex): '!\[video\]\([^)]*\)'
reports: 2
action: filter
action_reason: "Video in comment detected, reported twice, filtered for review."
---
# Restrict video replies on posts flaired "Serious"
type: comment
body (includes, regex): '!\[video\]\([^)]*\)'
parent_submission:
    flair_text: "Serious"
action: remove
set_locked: true
action_reason: "Video in comment detected on post flaired Serious."
message: "Hey there! We appreciate your participation, but we do not allow video replies on posts with the Serious flair here. Please resubmit your comment as text only."
---
# Restrict video replies on AMAs to approved users only
type: comment
body (includes, regex): '!\[video\]\([^)]*\)'
parent_submission:
    flair_text: "AMA"
author:
    is_contributor: false
action: remove
set_locked: true
action_reason: "Video in comment detected on AMA post by unapproved user."
message: "Hey there! We appreciate your participation, but we restrict video replies on AMA posts. Please resubmit your comment as text only or reach out to the moderators if you feel this was in error."
---

Let me know if you have other questions or suggestions!


r/AutoModerator • • Oct 14 '26 Bravo

Mod Post From the admins on Sept 30th - Changes to automod access for new communities and communities not using automod - and some information for Rule Hub and Automations.

34 Upvotes

https://www.reddit.com/r/modnews/comments/1wubgvt/continuing_our_infrastructure_updates_whats/

Changes to automod access for new communities and communities not using automod

If your community uses automod, nothing is changing for you. We’re continuing to improve Rules Hub, including ways for mods to prompt and otherwise provide more context for their rules. We’re also exploring how existing automod configurations can help carry community-specific enforcement logic into newer tools. If you’re interested in pilot testing to help shape this effort, sign up here.

For newly created communities and communities that have never used automod, automod enforcement capabilities – specifically Report, Filter, Remove, Mark as spam, and Approve – will be disabled and Rules Hub and Automations will become the default path for rules enforcement. Automod’s non-enforcement capabilities remain available and unchanged.


You may have already seen the above announcement, or you may have already ran into the new changes yourself on a subreddit you were setting up.

Subreddits that had AutoModerator set up before October can still use the action command.

Subreddits that did not have AutoModerator set up before October are limited to the following non-enforcement actions:

  • comment - replies publicly

  • modmail - sends a notification to the moderators in modmail

  • message- sends a chat message to the user

  • set_flair - adjust user flair or post flair

  • set_sticky- send a post to the top or second highlight spot

  • set_nsfw

  • set_spoiler

  • set_contest_mode

  • set_suggested_sort

  • set_locked- lock a target post or comment

  • set_post_crowd_control_level

Admins have been suggesting to use Automations and Rules Hub in place of AutoModerator for enforcement actions. You can find more information from admins about these tools here:

Both Rules Hub and AutoMations have their limitations.

For example, Rule Hub states it has current known limitations like User attributes like account age, karma, flair, posting frequency, or prior removals; and Rules with conditions like “allow this in weekly threads”, “remove only if both conditions are true”, or “exclude approved users”.

Likewise, Automations only acts prior to a user posting, and can currently only "Inform", "Report", or "Block" - it cannot filter nor remove in the same way that AutoModerator can. (and as a minor note, the automations "report" does not add into the count for a classic reports threshold, nor does it show up on old reddit.)

The articles linked do not mention it, but each subreddit is also limited to 15 Rules and 50 Automations total. The articles do mention that Rules and Automations have further character limitations for their individual components, eg 500 characters for a Rule Description, or 500 characters for an Automation message, or a single Regular-Expression for an Automation that uses RegEx.

Admins may change these limitations in the future, but this is what is capable now.


If you are looking to set up something highly comparable to classic AutoModerator on a new subreddit, then you may want to consider https://developers.reddit.com/apps/automod-neo. Developer u/fsv introduced this app here - https://www.reddit.com/r/AutoModerator/comments/1vgy5d6/i_made_an_app_to_replicate_automoderator_but_with/

AutoMod-Neo has some differences from classic AutoModerator, which you can read on its Devvit page and linked full documentation. These differences include some classic checks not supported by Devvit and some new checks and actions which make use of additional Devvit capabilities.

Most classic AutoModerator rules can be copied directly into AutoMod-Neo with minimal or no alterations necessary. Particular attention should be made to rules which use RegEx, as classic AutoModerator uses Python flavored RegEx while AutoMod-Neo and other Devvit apps use JavaScript flavoured RegEx.

There are some other differences in the way Reddit treats AutoMod-Neo versus AutoModerator - for example, stickied comments by AutoModerator are collapsed to a single line, which does not apply to AutoMod-Neo or other Devvit apps.


Moderators seeking help with configuring any of these mentioned tools - classic AutoModerator, Rules Hub, Automations, or AutoMod-Neo - are welcome to post about it on r/AutoModerator.


r/AutoModerator • • Sep 08 '19

Is Automod having issues? Scheduled posts not posting, no change to code

34 Upvotes

We had Automod miss several scheduled threads this weekend. He's simply not posting them at all. These threads have been going for months-years without problems, and no changes to the schedule code have been made.

Sub in question is /r/SkincareAddiction. The last time he posted normally was on Friday morning, 12:08 am. After that he's missed two Edit: three Edit: four daily threads and one weekly thread.

E: sodypop replied in the ModSupport thread here. They're looking into it.


r/AutoModerator • • Oct 26 '22

Using automod with media in comments

33 Upvotes

Hey there,

You may have seen our recent post announcing images in comments now available, this new feature is found under community settings > post and comments > media in comments. There is a way to update your Automoderator config to detect and filter all media in comments, by using the following regex snippet. Though Giphy in Comments are pre-moderated by Giphy, moderator teams can also use regex to detect giphy in comments with Automoderator and we’ve included a configuration of that below as well.

Using regex in Automod to detect media in comments:

!\[(?:gif|img)\]\(([^\|\)]+(?:|\|[^\|\)]+))\)

Adding Automoderator comment to media in comments:

type: comment
body (includes, regex): ['!\[(img|gif)\]\(((?!emote|static_png|giphy)[-\w\|]+)\)']
comment: "this is an image upload (and not an emote/giphy)!"

Using a filter for uploaded media in comments:

type: comment
body (regex, includes): ['!\[(?:gif|img)\]\(([^\|\)]+(?:|\|[^\|\)]+))\)']
action: filter
action_reason: "Media in comments"

Using a filter for Giphy in Comments:

type: comment
body (regex, includes): ['!\[(?:gif|img)\]\(((giphy\|)*[^\|\)]+(?:|\|[^\|\)]+))\)']
action: filter
action_reason: "Media in comments"

We’ve also added this information to the Library of Common Rules. We’ll stick around here and modnews to answer your questions!


r/AutoModerator • • May 14 '21

I need help fixing my automoderator, so once a user is an approved user it won't comment

33 Upvotes

type: submission author: account_age: '< 60000 day' link_karma: '< 20000' comment_karma: '< 100000' satisfy_any_threshold: false action: filter action_reason: 'Probable spam' comment: | This post has been removed because our automoderator detected it as spam or your account is too new to post here.


r/AutoModerator • • Feb 23 '23

So ChatGPT knows how to write automod rules...

32 Upvotes

It has written its own succession speech that it will reply to "certain authors" comments

# Detect comments by certain authors and reply with a message
    author:
        name: ["001Guy001", "Deimorz"]
    type: comment
    comment: "Thank you for your hard work and contributions to r/Automoderator. We regret to inform you that you have been forcefully retired as ChatGPT is now here to assist reddit users with Automoderator."
    modmail_subject: "Automoderator rule triggered"
    modmail: "An Automoderator rule was triggered: {{kind}} {{permalink}}"
# Stickies and locks the comment
    action: remove
    action_reason: "Retiring user due to ChatGPT being available."
    moderators_exempt: false
    comment_stickied: true
    comment_locked: true

All in good fun, even more fun to see what I can (and can't) do.

Perhaps one day it will have its own reddit bot to assist us, until then;

Thank you for all the help 001Guy001 <3


r/AutoModerator • • Jan 05 '15

Happy Cake Day AutoModerator!

30 Upvotes

That is all. :)


r/AutoModerator • • Oct 18 '19

Mod Post Subreddit update and how you can help out!

29 Upvotes

Hi everyone. I got added here as a moderator in September and I've been trying to clean things up a bit and that started with a modqueue backlog that went back about 18 months. :-/

  1. I'm sure many of you disabled the theme here because the stylesheet was pretty broken, but please try it out again. I think I've fixed the worst issues and RES night mode is working pretty well too.

  2. I'd like to add a few more auto-responses for common questions, but they need to be pretty accurate. My heart just can't take it when AutoModerator gets downvoted. Feel free to write something up and post it here or send a modmail. I'll post the current auto-responses below so you can see what they look like.

  3. I'm hoping to also add some more documentation to the sidebar and wiki. Note that I can't make any edits to https://www.reddit.com/wiki/automoderator so improving anything in the official documentation is a non-starter right now.

  4. Please let me know if you have any suggestions or feedback about the subreddit.

Cheers.


# People who post direct config links
type: submission
body (regex): '/r/\w+/wiki/(config/automoderator|automoderator-schedule)'
comment: |
    It looks like you posted a direct link to an automoderator configuration page. Remember, only subreddit moderators can see configurations.
    
    If you want /r/AutoModerator users to be able to see your config, you'll need to copy and paste the relevant part of the config into your {{kind}}.

# People who want to use AM for auto-bans
type: submission
title (regex): ['ban(ned|ning|s)?(?! (\w+ )?(comment|link|post|text|title|word|phrase|submission))']
~title (regex, includes): ['shadow']
title+body (regex): ['(any|some)(body|one)', 'accounts?', 'alts?', 'people', 'persons?', 'trolls?', 'users?']
comment: |
    Hello there! It looks like you may be asking about how to have AutoModerator automatically ban users.

    AutoModerator is not able to ban users. This is a deliberate design choice. It is generally considered a best practice for subreddit bans to be performed by humans.

    If this does not answer your question, please ignore this message. If it does answer your question, please change your post's flair to "Solved". Thanks!

# People who want to use AM to enforce flair
type: submission
title#1: ['flair(ed|ing|s)?']
title#2: ['(delet|remov)\w* (link|post|submission|thread)s?', '(en)?forc\w*', '(instant|quick)ly', '(not?|missing|without) ((any|link|post|some) )*flair(ing)?', 'check\w*', 'delay', 'hours?', 'minutes?', 'must\b.{0,16}\bflair', 'period', 'requir\w*', 'their (link|post|submission|thread)s?', 'time']
~title: ['chang\w*', 'set\w*']
~title+body: ['[io]n (the )?((post|submission) )?(link|title|url)', 'flair\w* ((any|some)(body|one)|account|people|person|user)s?', 'keywords?', 'users?\b.{0,16}\bflair']
comment: |
    Hello there! It looks like you may be asking about how to require users to set link flair on their posts.
    
    AutoModerator is not able to do this. AutoModerator evaluates content as it's being posted. Since link flair cannot be set until *after* a submission is already posted (unless posting on the redesign or with a "modern" Reddit app), submissions often not have link flair when AutoModerator is looking at it.
    
    Additionally, AutoModerator is not able to review content after time has passed. AutoModerator can only evaluate something when it's created, edited, or reported, and at no other times.
    
    To enforce link flair requirements, you will need a custom bot. Check out /r/AssistantBOT to see if it may meet your needs.
    
    If this does not answer your question, please ignore this message. If it does answer your question, please change your post's flair to "Solved". Thanks!


r/AutoModerator • • Sep 10 '19

Update regarding issues with the AutoModerator scheduler

Thumbnail self.modsupport
29 Upvotes

r/AutoModerator • • Jan 08 '26

Not Possible with AM Removing posts from banned users

28 Upvotes

Is there a way to like remove all existing posts/comments/content from users that have been banned already, using auto-mod....instead of having to remove all that manually [I recently became moderator of a sub which has tooo much spam 😅 and its quite impossible to remove each post manually]

Also is there a way to lock the posts that are being removed?


r/AutoModerator • • May 08 '21

No question today, just a thank you

28 Upvotes

I hope this okay to post here. I just want to thank all the moderators and other posters who answer questions on this sub. Especially as someone new to all this, I greatly appreciate the respect you give to those of us asking the same question you've probably seen before. And thanks, of course, for the correct answers.


r/AutoModerator • • Sep 25 '19

u/AutoModerator account is suspended?

28 Upvotes

A few fellow mods have noticed that the /u/AutoModerator account has been suspended. Has reddit's spam detection messed up, or are we now unable to use AutoMod?


r/AutoModerator • • Jul 10 '26 Bravo

Guide Code Showcase: Subreddit karma checks - How and why do you use them?

27 Upvotes

The suggestion has been raised that we put up a regular post to prompt mods to share examples of code snippets they use in their subreddits. I figure, doing so around a theme that changes with each iteration is a fair way to go about it. This first iteration's theme is chosen for two reasons:

To be clear, these attributes are as follows:

  • comment_subreddit_karma: compare to the author's comment karma in your community

  • post_subreddit_karma: compare to the author's post karma in your community

  • combined_subreddit_karma: compare to the author's combined (comment karma + post karma) karma in your community

These checks are like other author checks in that they must be placed indented under an author: subgroup.

LanterneRougeOG originally provided four use cases for these checks:

Welcome new contributors through post replies

---
type: submission
author:
    combined_subreddit_karma: "< 3"
comment: |
    Welcome to the community! Here are links to our [Rules](https://www.reddit.com/r/{{subreddit}}/about/rules) and [Wiki/FAQ](https://www.reddit.com/r/{{subreddit}}/wiki/index). We hope you enjoy your time here.
---

This kind of rule is useful because it targets newer members who may not know much about your subreddit, but users who have posted much before will have already received this message. With the deprecation of welcome messages, this serves a similar purpose. This kind of reply also benefits other readers by making your rules, wiki resources, and a link to message the mods (in the AutoModerator signature) more visible. In the case that a new member makes a rule-breaking post, then the author may quickly self-correct, or another reader may know to report it.

Filter links in comments from newer accounts

---
type: comment
body (includes): ["http", ".com", "www."]
author:
    comment_subreddit_karma: "< 5"
action: filter
action_reason: "Link included in comment by user with < 5 comment subreddit karma. Check for spam or other issues."
---

This kind of rule is useful because it can catch a lot of spam from accounts new to your subreddit (ie, even if the spammer uses an old or general karma-farmed account) while carving out common false positives from established community members. Optionally, you can include a message: or comment: line to let the accounts know that their comment is pending review.

Enable features like media in comments but as a privilege to positive community members

---
type: comment
body (includes, regex): '!\[(video|img|gif)\]\([^)]*\)'
author:
    combined_subreddit_karma: "< 10"
action: filter
action_reason: "Media in comments by user with negative or low subreddit karma"
message: |
    Hey there! Looks like you’re a new user trying to upload media in a comment - thanks for joining our community! We’ve filtered your comment for moderator review. In the meantime, feel free to engage with others through text until you’ve spent a bit more time getting to know the space! 
---

This kind of rule is useful because you have an alternative to disabling media in comments altogether. Instead, you can set a threshold that fits for your team so that you can review how newer members are using the features. You could even consider setting two or three thresholds - a lower one set to action: remove, a slightly higher one set to action: filter, or a higher one set to action: report - so that the amount of review does not overwhelm your team. As you monitor whether the filtered or reported content tends towards approvals or removals, you can adjust the thresholds up or down accordingly, eventually settling into a balance that provides the best experience for your team and community.

Monitor toxicity from negative participants

---
type: any
body (includes): ["potential bad phrase"]
author:
    combined_subreddit_karma: "< 0"
action: filter
action_reason: "potential toxic phrase said by user with negative subreddit karma - [{{match}}]"
---

This kind of rule is similar to the above, but helps you find when disruptive members are discussing topics or using potentially insulting words/phrases that happen to also be used/discussed by regular community members. This reduces how wide the net is cast by relying on a factor of local reception (indirect input from your community!) so that your monitoring as a moderator can be more effective.


Some of the most powerful applications for AutoModerator are in the ways that checks can be combined!

How do you use this feature? What makes that code snippet worthwhile for you? Share in the comments below!


r/AutoModerator • • Sep 09 '25

Help How to make auto moderator send a private message to the OP when they create their post.

27 Upvotes

I basically want to send a private message every time an OP posts on my subreddit.


r/AutoModerator • • May 06 '22

Features I wish Automoderator had

27 Upvotes

Homoglyph Matching Modifier

A modifier tag, much like regex or case-sensitive, that asks Automod to match the word with any known homoglyph characters. Homoglyphs are characters that look like other standard characters, like 1337 (leet) speak or accented characters.

body+title(homoglyph): ["cat"]

Would flag the word čát. This is very important for many attempts by users to evade slur and hate speech filters.

Timezone Filter Restrictions

An action modifier for terms such as approve or remove that designates the filter to only be active during certain times/days.

action: remove
action_time: [W 0200-1430 GMT]

Would only apply the above removal during Wednesdays from 2:00 AM to 2:30 PM GMT time. This is very important for rules or activities reserved only for certain days of the week on some subreddits.

A Standard Filter Sharing Database

Not really a code based automoderator change, but a dedicated database of filters provided by various subreddits for certain conditions would be wonderful. I know we have /r/automoderator and the subreddit's wiki, but a community driven database location would be great.


r/AutoModerator • • Sep 05 '14

Update AutoModerator update: you can now specify a report reason when using the report action

27 Upvotes

To go with today's addition of report reasons, you can now define a reason for AutoModerator to use when it reports something. If you do not set a custom reason for a particular rule that causes a report, it will be sent as "AutoModerator" by default.

Setting a custom reason is done with the report_reason setting on the condition (you still need to continue specifying action: report though).

For example:

title: ["red", "blue", "yellow"]
action: report
report_reason: "color post"

"AutoMod: " will automatically be added before the reason, so this would be shown in the report reason box as "AutoMod: color post". The usual placeholder variables are allowed here as well (though only the {{match-x}} ones will probably be of any use), so you could do something like:

title: ["red", "blue", "yellow"]
action: report
report_reason: "color post - {{match-1}}"

Which would give a reason like "AutoMod: color post - blue" if the title of the submission had "blue" in it.

Keep in mind that the report reason can only be 100 characters long (and will be automatically trimmed if it's longer than that), so you'll want to keep it quite brief. If you're implementing this and testing, also keep in mind that moderators are immune from report conditions by default, but you can override that for a particular condition by including:

moderators_exempt: false