r/AutoModerator • • Nov 23 '25

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

26 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 • • Apr 26 '23

NSFW subreddit mods, it's time to update your automod rules!

26 Upvotes

Since imgur is about to ban all NSFW content, mods of NSFW subs need to encourage users to migrate away from using imgur. They also need to ensure that safe imgur alternatives aren't blocked. (See this discussion for a list of imgur alternatives)

We use an automod rule on many of the NSFW subs I mod to create a "white list" of safe image hosts that the sub allows. The way this works is when a user posts a link to another site, automod checks the link to make sure it is on the list of approved domains. If not, the post is put in the modqueue for manual review. We have just updated this list to include a bunch of the imgur alternatives. Here is the automod rule. Feel free to steal and modify for your own subs:

---
type: link submission
~domain: [35photo.pro, 500px.com, abload.de, deviantart.com, deviantart.net, fav.me, fbcdn.net, flickr.com, freeimage.host, giphy.com, gfycat.com, gifs.com, gifsoup.com, gyazo.com, gfycat.com, ibb.co, imageshack.us, imgbox.com, imgchest.com, imgur.com, instagr.am, instagram.com, lensdump.com, liveleak.com, media.tumblr.com, pixhost.to, postimages.org, postimg.cc, photobucket.com, picsarus.com, postimg.org, puu.sh, reddit.com, redd.it, i.redd.it, i.reddituploads.com, redgifs.com, images.sex.com, sli.mg, staticflickr.com, tinypic.com, twitpic.com, vid.me, vimeo.com]
action: filter
action_reason: Non-whitelisted link.
message: |
      Because your post contains a link that is not on our list of trusted image or video hosts it needs to be manually approved by a mod. This action has been taken to prevent spam. Links to safe sites such as [imgchest](https://imgchest.com), [postimages](https://postimages.org), and [redgifs](https://redgifs.com) will be approved automatically.

modmail_subject: |
    Link post to non-whitelisted site needs manual review

modmail: |

    **A {{kind}} by /u/{{author}} has been filtered because it contains a link that is not on the whitelist. Check mod queue at your discretion and approve or confirm removal.**

    **Thread:** {{title}}

    **Content:** {{body}}

    **Link:** {{permalink}}
---

Just cut and paste that anywhere on the automod wiki page for your sub. That page should be found at https://www.reddit.com/r/[YOUR SUB HERE]/about/wiki/config/automoderator/.

It is a good idea to also make users aware that they need to find a new image host besides imgur for NSFW uploads. To that end I've created the following automod rule, which will automatically post a friendly informational comment when someone posts an imgur link:

---
type: link submission
domain: [imgur.com]
comment: |
      It looks like you've linked to content uploaded to imgur. **Please be aware that imgur is about to ban all NSFW content, including private links.** They have [announced that they will begin removing all NSFW content starting May 15, 2023](https://help.imgur.com/hc/en-us/articles/14415587638029-Imgur-Terms-of-Service-Update-April-19-2023-). For more information, see [this post](https://www.reddit.com/r/FantasyGirls/comments/12tbj5r/attention_imgur_says_they_will_begin_removing_all/). We recommend switching to one of the many safe imgur alternatives [discussed in this thread](https://www.reddit.com/r/imguralternatives/comments/12vk0i0/comparing_the_nsfw_imgur_alternatives/). [Here is how to download all files you have uploaded to your imgur account](https://help.imgur.com/hc/en-us/articles/201738607-Image-Downloads).

      We have *not* removed this post and you are *not* in trouble for using imgur links. We just want our users to be aware that imgur has changed its policies. Unfortunately, this will negatively impact many redditors. 

      If you have concerns about this, we encourage you to contact imgur politely and let them know. [Here is imgur's official contact page](https://help.imgur.com/hc/en-us/requests/new). You can also email imgur at [[email protected]](mailto:[email protected]).
---

Again, feel free to steal and modify to suit your needs.

If you have any good imgur alternatives that you think mods should be white-listing that aren't listed here, please mention them in the comments.

If you know of a NSFW sub with mods that might find this helpful, feel free to share with them.


r/AutoModerator • • Feb 03 '23

I'm working on an automoderator sync tool that will allow you to sync your config across a list of subreddits

26 Upvotes

I'm working on a script to sync your automod config across a list of subreddits with plans to share it here when I'm finished.

Sometimes when you mod multiple subreddits you have a set of rules in use on every subreddit, and a set of rules that are specific only to that sub. It can be tedious to make sure that the list of common rules gets updated on every sub. It would be nice if there was a way to sync these configs.

I'm working on a python bot that will do that. Here is what it looks like right now. https://i.imgur.com/2By2AVp.png

The plan is to have a subreddit-specific section at the top for rules you only need on that subreddit and a second part of the config that will be synced across a list of subs that you also specify.

The way it works right now is that you designate a base subreddit where you edit the config. The bot will listen for save actions on the config file. Once the config is saved, the bot will then sync it across a list of subreddits that you also specify. A second method that allows you to PM the bot could also be utilized if needed.

Not sure how long it will take to finish the bot, but the basic sync logic is in place and working. If this is something you might be interested in, by all means share any ideas or suggestions you might have. Once I have more, I will return for an update.

Update: The bot is ready. Working on some documentation and then I will post the code.


r/AutoModerator • • Sep 06 '17

Help lately automod is not working, 50% fail rate, tested & confirmed on another sub

26 Upvotes

Is something wrong with automoderator today? I have posts going through from shadowbanned users in r/stocks, and rule breaking posts not being automoded.

So I copied my exact rules on my private sub & added "moderators_exempt: false" and yeah, even my posts will get autmoded around 50% of the time, meaning I post something a rule would catch and nothing happens, then I post again and it gets auto emoved.

Maybe, I thought, the problem was too many shadwobanned users in the list which is 85 users, so this morning I reduced that number to 50 and moved the 1 user that keeps getting to the top of the list, no change.

I have 337 lines in automod, 31 rules, and 20 automod events a day, so is there a limit or a point where there's performance degradation? I always assumed this is nothing compared to a larger higher volume sub.


r/AutoModerator • • May 12 '15

AutoModerator updates: link to config page added in sidebar mod tools box, set_suggested_sort added, fix to flair-checking rules for users with disabled flair

26 Upvotes

Over the last week, I converted all subreddits (except a few obvious test ones) to use the new, integrated version of AutoModerator. At this point, the old version is effectively obsolete, and everyone should be using the new version going forwards. Last night, I also had AutoModerator step down as a moderator in over 8500 subreddits where it no longer needed to be a mod (since the new version doesn't require that). It stayed as a mod if the subreddit uses the scheduled-posting script (which is still a separate script that runs externally), or any other of the separate scripts I have set up to run through /u/AutoModerator. There are still a few other things I need to do to finish up the transition, but overall things are looking pretty good now.

With those things done, a few other updates were made today. First of all, I've added a changelog page to the AutoModerator section of the wiki, where I'll be tracking everything I change in it going forwards, so you can always look there if you need a summary of updates/fixes: https://www.reddit.com/wiki/automoderator/changelog

As promised, I've added a link to the AutoMod config page in the "moderation tools" box in the sidebar. Note that it will only appear if you have "wiki" permissions (which you need to be able to view the page), and if your subreddit already has a config page created. It will not show up in subreddits where the /wiki/config/automoderator page does not yet exist.

As also promised, AutoModerator now supports setting the suggested comment sort for submissions, through the set_suggested_sort action. For example, this rule will set the suggested sort to "Q&A" on any submission with "IAmA" or "AMA" in the title:

title: ["IAmA", "AMA"]
set_suggested_sort: "qa"

More information about this is available in the "Actions" section of the documentation

And finally for now, I also deployed a fix related to this user flair bug reported yesterday. AutoModerator now again sees flair as blank if a user has disabled it, which should give the same behavior related to disabled user flair as it had in the old version.

Please let me know if you have any questions, and definitely don't hesitate to ask any questions or bring up any concerns with the new version. Some subreddits have some pretty crazy configurations, and I can't be 100% certain that AutoMod's behavior and the conversion script are both correct, so I'm mostly relying on feedback to let me know if something has gone wrong in the transition.


r/AutoModerator • • Aug 05 '26

Mod Post Three updates from the admins regarding automated moderation tools today

25 Upvotes

https://www.reddit.com/user/spez/comments/1vgbkge/modernizing_reddits_infrastructure_with_you/

Automod: This has been one of the most important mod tools. But it’s also hard to learn, hard to maintain, and heavily dependent on brittle keyword matching, regex, and inherited configurations that only a few people on a mod team, if any, understand. We can do better.

We’re building new systems, including giving mods LLMs and AI-assisted tools to help them tackle their low-hanging (but time-consuming) fruit, so they can spend more time cultivating their community and less time policing.

https://www.reddit.com/r/redditdev/comments/1vgbm9c/our_plans_for_the_future_of_reddits_public_data/

No specific mention about AutoModerator.

https://www.reddit.com/r/modnews/comments/1vgbt2j/whats_next_for_mod_tools/

Longer term, we think systems like Rules Hub can handle the enforcement tasks you rely on Automod for today, while being easier to use and maintain. But it’s not there yet, especially for larger and more complex communities. Automod remains one of the most capable moderation tools on Reddit today, and we won’t change any existing Automod workflows until replacement workflows are tested and proven in partnership with moderators.

ETA: The posts do contain more information regarding other moderation tools development and Reddit admins intentions for the future, so I do encourage you to read the full posts.


r/AutoModerator • • May 23 '26

Wiki Updates New Wiki Page - Setting up AutoModerator for the first time

Thumbnail reddit.com
25 Upvotes

One of the frequently asked questions here and in other moderator subreddits is about how to set up AutoModerator for the first time. This can be tricky mostly for two reasons:

  • If you are unfamiliar with AutoModerator, then you may not know where to look. Some of the documentation is version-specific for reddit as well.

  • The first time AutoModerator is configured can have a couple slightly different steps from future edits.

So this wiki page lists the basic steps and a few pointers for the first-time (or first-timer) to help get from confusion to the configuration editor.

https://www.reddit.com/r/AutoModerator/wiki/setup

I'll be adding this link to an auto-reply for some keywords when people post here. Let me know if there are other points or tips you think should be added to this page or other pages!


r/AutoModerator • • Mar 01 '21

Protip: If you use action: filter instead of action: remove, it shows up in your mod queue.

25 Upvotes

paint direful tease toy snatch upbeat unused jeans lush squalid

This post was mass deleted and anonymized with Redact


r/AutoModerator • • Jan 16 '21

Simple rule to stop some spam on NSFW subs

25 Upvotes

I have noticed this recent wave of really annoying spam on nsfw subs where bots repost a popular image but it has been flipped and has a water-mark added that says something like "meetlovefast". Banning the spammers is impossible because they seem to have access to an endless supply of accounts.

I wanted to share an automod rule that might be helpful. After adding this in my sub r/fantasygirls and several others, it has cut way down on this stuff. It is a pretty simple rule:

body+title (includes): ["datekisslover","momentgirl","makefastdate","datingfindlove","meetlovefast","leakgirls"]
action: spam

This rule is now automatically catching and removing multiple spam posts a day on some of my bigger subs. And I don't worry about innocent posts getting caught in the crossfire because a legitimate poster is unlikely to use the phrase "datekisslover" in their post title.

You can easily add other keywords if the spammers change up the names of the websites they are trying to link farm. Hope some mods find this helpful.

zadie


r/AutoModerator • • Jul 16 '22

Solved PSA: It's possible to detect embedded images and videos in text posts

24 Upvotes

For a long time I thought this wasn't possible but it is :)

To detect embedded images check for ![img] in the body and for videos check for ![video] (for regex rules it's '!\[img\]' and '!\[video\]') || edit: also ![gif] / !\[gif\]

I discovered this by using a rule that comments the body of the post (with {{body}}). In the case of the video for example there was a *Processing video okbrr43r3xb91...* in the outputted body, even though the source of the post's body there was https://reddit.com/link/{id}/video/{id2}/player link.


r/AutoModerator • • Sep 29 '21

Solved I made this simple rule to tell me when someone likes my sub. Brightens my day, figured I’d share it with y’all

24 Upvotes

It really is very basic, but here you go:

—-

title+body+media_description: [favorite sub, favorite subreddit, love this sub, loving this sub,love this subreddit, loving this subreddit ]

modmail: /u/{{author}} loves the sub! moderators_exempt: true

—-


r/AutoModerator • • Oct 01 '20

Solved VredditDownloader has been banned - here's a rule to make AutoMod take its place :)

24 Upvotes

The bot SaveThisVIdeo has been replacing VredditDownloader but that function can be replicated by AutoMod (also that bot gets banned by BotDefense).

You can also add vredditshare to the list but it has a different function that AM can't replicate, it uploads the videos to https://gfycat.com.

Edit: Updated code https://www.reddit.com/r/myautomod/wiki/rules#wiki_replacing_the_video_downloading_bots

When the bots are called:

---
type: comment
is_top_level: true
body (regex, includes-word): '[ur]/(VredditDownloader|SaveThisVIdeo|savevideo|savevideobot|downloadvideo|save_video|GetVideoBot|downloadmp4bot|vreddit_bot|downloadmp4|save\S*$|download\S*$)'

comment: |
  Hi, you can use one of the following sites to download the video :)
  
  * [RedditSave](https://redditsave.com/info?url={{permalink}})
  * [SaveMP4](https://savemp4.red/?url={{permalink}})
  * [Viddit.red](https://viddit.red/?url={{permalink}}) (refresh the page and click on Download HD Video)
  * [Reddit.tube](https://reddit.tube/) (you need to input the url manually)
action: remove
---

Or a sticky comment in every video post (but still removing the summoning comments):

---
type: submission
domain: 'v.redd.it'
comment_stickied: true
comment: |
  To download the video you can use one of the following sites:

  * [RedditSave](https://redditsave.com/info?url={{permalink}})
  * [SaveMP4](https://savemp4.red/?url={{permalink}})
  * [Viddit.red](https://viddit.red/?url={{permalink}}) (refresh the page and click on Download HD Video)
  * [Reddit.tube](https://reddit.tube/) (you need to input the url manually)
---
type: comment
is_top_level: true
body (regex, includes-word): '[ur]/(VredditDownloader|SaveThisVIdeo|savevideo|savevideobot|downloadvideo|save_video|GetVideoBot|downloadmp4bot|vreddit_bot|downloadmp4|save\S*$|download\S*$)'
action: remove
---

r/AutoModerator • • Dec 13 '22

Addition of Subreddit karma allows for "Ranked/Participation" Rules & Auto Roles/UserFlairs

23 Upvotes

With the addition of Subreddit karma, you can now start adding "Ranked/Participation" rules or assign Ranked Roles based on karma ranges. (without need of a bot)

Eg. Assign ranks/trust based on community karma:

    type: any
    author:
        combined_subreddit_karma: < 51  
        combined_subreddit_karma: '> 0'
        satisfy_any_threshold: false
    set_flair: Rank_Flair_Text_Low_1_50

---

    type: any
    author:
        combined_subreddit_karma: < 101
        combined_subreddit_karma: '> 50'
        satisfy_any_threshold: false
    set_flair: Rank_Flair_Text_Low_Med_51_100

---

    type: any
    author:
        combined_subreddit_karma: < 201
        combined_subreddit_karma: '> 100'
        satisfy_any_threshold: false
    set_flair: Rank_Flair_Text_Med_101_200

---

## Less-than value NEEDS to be first based on testing else all conditions are met.
## With testing of the rule, closing the gap on the ranges seems to provide bad results, not like anyone needs 10,000+ rules to define single point karma increases. 5pt <gap> Karma was the lowest I could make work.

## Can also be set to only count Community Comment Karma or Community Post Karma

I presume thats something similar to how the new r/Help community rankings will work. (or maybe they have some other special bot to do the work)

https://www.reddit.com/r/modnews/comments/zk9qn8/subreddit_karma_is_now_in_automod/

Can only imagine the other conditional rules that could be used in communities with community specific karma.


r/AutoModerator • • Dec 19 '20

Here is my new Google Amp filter! Feel free to use it across all of your subs

23 Upvotes
url+body (includes): "google.com/amp/s/"
action: remove
comment: |
    Your [{{kind}}]({{permalink}}) was removed because it was a Google Amp URL, which is an indirect link to the page you were attempting to share; please delete `google.com/amp/s/` from your link and resubmit it.

r/AutoModerator • • Sep 12 '20

AutoModerator needs to be able to act on is_edited if a comment is approved

23 Upvotes

A big reason to use is_edited is to find spammers posting links later on. But, if you approve a comment, then a spammer edits it later, AM won't take action on an is_edited comment. This is a flaw. AM should have a setting to review no matter if it was approved by a mod.


r/AutoModerator • • Mar 11 '20

Why won't this stop the onlyfans mega leak spammers?! (NSFW) NSFW

23 Upvotes

For some reason this doesn't remove posts much less shit down the spammers' throats like I want. Is my regex busted? I want any instance of 'bit.ly' in a title to get blasted. Thanks.

Very NSFW code below.

 type: any
 body (includes, regex): ['MEGA:', 'Free Folder', 'bit.ly']
 action: spam
 comment: |
     GO FUCK YOURSELF YOU BETICHOD SPAMMER.
 message: |
     What the fuck did you just fucking spam at me, you little bitch? I'll have you know I graduated top of my class in the Anti-Idiot Invasion Force, and I've been involved in numerous secret raids on spammers, and I have over 3000 confirmed bans. I am trained in anti-troll warfare and I'm the top IRCop in the entirety of rizon. You are nothing to me but just another spammer. I will wipe your ad campaign the fuck out with precision the likes of which has never been seen before on this Earth, mark my fucking words. You think you can get away with PM-spamming that shit to my forum users over the Internet? Think again, spammer. As we speak I am contacting my secret network of Admins and SysOPS on IRC and your IP is being traced right now so you better prepare for the storm, spammer. The storm that wipes out the pathetic little thing you call your spam campaign. You're fucking banned, kid. I can be anywhere, anytime, and I can ban you in over seven hundred ways, and that's just with my bare hands. Not only am I extensively trained in unarmed spam fighting, but I have access to the entire arsenal of the Reddit Admins and I will use it to its full extent to wipe your miserable ass off the face of the internet, you little shit. If only you could have known what unholy retribution your little "clever" date site tumblr cam in profile blogspot malware spam was about to bring down upon you, maybe you would have held your fucking spambots. But you couldn't, you didn't, and now you're paying the price, you goddamn idiot. I will shit financial hardship all over you and you will drown in it. You're fucking banned, spammo.

---

r/AutoModerator • • Feb 18 '18

I've developed a condition that should effectively filter out every Unicode glyph that will crash an Apple system. Hope this can help someone!

23 Upvotes

As some of you are probably well aware by now, recently it became known that certain Unicode glyphs cause iOS systems to crash, sometimes even in a bootloop. Obviously this isn't an ideal situation for subreddit moderators, who in some cases might not even be able to remove the offending posts due to the crashing.

Based on some technical analysis done on the issue, I've gone ahead and written a condition that should remove this sort of stuff when it's posted. Within minutes of putting it in PCMR's config, it had already caught a post, so I think it's useful there.

## Apple Unicode Bug
## Details: https://manishearth.github.io/blog/2018/02/15/picking-apart-the-crashing-ios-string/
## Regex101: https://regex101.com/r/bFFeo3/2/

    url+title+body (regex, includes): ['[\u0c15-\u0c39\u0915-\u0939\u0958-\u095f\u0978-\u097a\u0995-\u09b9\u09dc-\u09df][\u0c4d\u094d\u09cd][\u0c15-\u0c39\u0930\u09B0\u09af](?:\u200c|\U0000FE0F)[\u0c3e-\u0c4c\u093e-\u094c\u09be-\u09cc]']
    action: remove
    action_reason: Apple Unicode text bug exploitation

r/AutoModerator • • Feb 02 '26

Mod Post An issue with Recommended Post Notifications affecting r/AutoModerator

22 Upvotes

This post is not about u/AutoModerator the bot, but instead about r/AutoModerator the subreddit.

The primary purpose of the subreddit here is for moderators to find updates, support, and resources regarding the AutoModerator mod tool. More generally, moderators also discuss other similar or related mod tools like subreddit settings, safety filters, Automations, Devvit apps, and API bots, particularly if those other tools supplement or interact with AutoModerator. (Which is fine! but more on those topics another day.)

On occasion, non-moderators also post here to inquire about AutoModerator, for example when they are seeking to understand something about their experience with it through regular posting or browsing. This is uncommon but not necessarily out of place for this community.

Observations

Over the past few weeks, I've been monitoring the comments on posts here, and there is a concerning trend in comments from non-moderators who indicate that they are confused as to why they even found the post they are commenting on. Some examples of comments from the past few months explicitly supporting this trend:

  • October:

Why was this insignificant post suggested to me?

Same. Idk why I saw it in my notifications.. but it was there.

It just randomly sent me a notification to. Said 11.45am std but its only 8.41pm amd this post was from 3 days ago. Ive never got notifications from reddit period. I woke up this morning with over 1000 notifications and suggestions it crashed my phone and made my alarm not even go off really really weird

  • November:

Curious as to how this shit ends up in my inbox.

  • December:

Why am I presented with this question

Why did I get this message? Was a post of mine removed? It would help to have more information if this pertains to me. Or is this just another you looked at so you get notifications of posts thing?

  • January:

Okay but why did I get a notification for this? I don't belong to any subs like this

I wondering why I got this notification as well.

Why am I getting this ? I don't post I only comment to people in communities I don't post anything

To the moderator; STFU ALREADY!! Fuckin making my phone go off for no fuckin reason 🤣 quite commenting no one wants to hear from you!

Why was this in my inbox?

I don’t know why I’m seeing this…

Stop telling me about this shit. I don't care

Not every comment like this over the past few months has been as explicit about the notifications or suggestions as those listed above, and often there are waves of commenters like this on a single post. For example, on a post from last week asking about encouraging users to select a user flair with AutoModerator, there were only two participants who were general moderators and both commented within the first day of the post. However, there were over 30 additional commenters who found the post 2-5 days later, none of which were moderators, commenting things like this:

Ok¿¿¿ I'm more confused than you are.

Okay so I’m not the only one that doesn’t understand right?

I’m not quite for sure what you should do because I have no idea what the hell of flair is

Excuse me but what's a flair?

I apologize. I’m still trying to figure this out. Can you explain to me what ima flair is or like what I need to do lol

Call me old school but I have no clue what this even means. Why can't people just have fun. Not being rude just not understanding

I don't even know what comment I sent this bot is flagging or what subredditit was in. Also, don't know what a flair is.

Furthermore, a brief inspection of all of these commenters surfaces one commonality - a participation history in NSFW subreddits focused on hookups (generally one location per account, but various locations overall) or niche kinks (specifically, on the smaller end of subreddit sizes, but still varied topics). Some subreddits showed up multiple times while I was looking across accounts, but I don't think the overall trend could be attributed to any specific subreddit, as there were dozens in total and many accounts had no overlapping participation histories with other accounts.

These accounts do not appear to be spammers. While many of these accounts are new to reddit and under a month old, others were 1-2 years old, and some were over 5 years old. My initial assessment of their participation histories are that these people are genuinely using Reddit in manners consistent with what would be authentic participation in those respective communities.

Description of the Problem

People generally come here to r/AutoModerator for two reasons: To find or provide help with using AutoModerator.

The observed trend above is disruptive for two reasons:

  • People posting here to find help are being swarmed with unhelpful replies from mostly non-moderators.

  • People being suggested posts here are confused themselves by the irrelevant recommendation notifications.

My speculation is that r/AutoModerator as a subreddit has somehow been miscategorized as a niche kink subreddit. Which is about as far from relevant as I could imagine. Alternatively, there could be many NSFW subreddits which have been miscategorized as reddit meta / moderation subreddits, which would be an issue at a different scale. Let me know if you think it could be something else.

Actions

I am generally removing these comments when I find them. Nobody is being penalized except where hostilities emerge.

If you spot comments you think fit this trend, please report them or reply to them with a link back to this post to help inform the confusion.

I have already escalated this issue (with relevant links) to r/ModSupport, a little over a week ago. They said they sent it over to the relevant team to investigate.

I am now writing this post to publicly address the issue. Hopefully some awareness will help people understand why they may be receiving odd comments when they post here, or why some posts have lots of removed comments.

One idea I have thought to try to address the issue is to, coincidentally, flag comments from accounts with no karma (ie, no prior participation) here, and/or if they have no user flair. I'm not particularly inclined to proceed with this option if other means adequately address the issue though.

Perhaps if anyone is browsing the Reddit Careers page and lands the Machine Learning Manager, Notifications Relevance position, write us a post on r/RedditEng about what happened here?

Let me know if you have any other questions or suggestions about this issue.


r/AutoModerator • • May 08 '23

I Am Surprising Myself!

22 Upvotes

So, I took mod certification 101 and 201 and then it brought me to the Automoderator course. I have 0 coding skills whatsoever and am setting up automod to help enforce my rules as I cannot always be active and I am doing surprisingly well.

I have had to fix some things here and there. But for someone who has absolutely no coding skills whatsoever I am really surprising myself! Feeling very accomplished too!


r/AutoModerator • • Oct 14 '26

Help - AutoMod So that's it? I can't filter posts from new accounts anymore?

21 Upvotes

i used a very simple code to filter out accounts that were less than a month old. it's been helping a lot keep bots out.

on a subreddit that didnt have automod configured before, i cannot add this. therefore many new accounts have been flooding the sub. the subreddit kind of feels like a mess and crowd control doesn't help since it will only filter accounts less than a day old

automod neo is not currently an option as i dont have full permissions


r/AutoModerator • • Sep 02 '20

Solved Just in case anybody else ever gets stumped because of an underscore (_) in a URL [Solved]

21 Upvotes

TL;DR - You need to make sure AM doesn't act on the text part of the hyperlink (the part in the brackets) if it has the URL in it, but instead acts on the actual URL.

I've been struggling for awhile now with a rule that detects the YouTube video ID in a YT URL.

It would work perfectly unless the ID had an underscore in it (it would detect all the characters up until the underscore and stop)

And so while working on it today I decided to look at the source of a comment that it acted on poorly and saw that Reddit adds a backslash (\) before an underscore when it's in the text part of the hyperlink (not sure if it's always been that way)

So this is my updated regex for detecting the Video ID:

(?<!\[)http\S+(youtu\.be/|youtube\.com/watch\?v=)([\w\-]+)

  • (?<!\[) - a Negative Lookbehind that makes sure that AM only acts on a url that isn't preceded by a [

  • ([\w\-]+) - a YouTube video ID includes only letters, numbers, underscores and dashed, and so AM will stop detecting characters for the ID once it reaches an ? or & (which imply other elements in the URL) or the closing ) of the hyperlink.

Hope anyone finds this helpful, it gave me a headache :)


r/AutoModerator • • Oct 07 '17

Solved How do I delete comments with variations on REEEEE?

21 Upvotes

Basically, I want to delete any comment with a word beginning with an 'r' followed by three or more 'e's.


r/AutoModerator • • Apr 06 '15

The new documentation for AM really should be linked in the sidebar

21 Upvotes

When AM was made part of reddit, new documentation was posted. This is currently not linked in the sidebar:

https://www.reddit.com/wiki/automoderator/full-documentation

A number of new keywords (E.G., parent_submission) were added that don't exist in the documentation on this subreddit, but exist in the new documentation.


r/AutoModerator • • Oct 28 '26

Me when I get added to a new sub and they never configured AutoMod

20 Upvotes

picture

this is such a pain, having to use the new automod is such a pain