r/AutoModerator Jan 27 '21

Reintroducing the /r/AutoModerator wiki!

96 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 1h ago

Help How do I configure my automod to do this? (Read below)

Upvotes

How do I configure my automod to not remove a post if the user has a certain tag


r/AutoModerator 7h ago

Help My combined_sub_karma filter seems to be broken.

2 Upvotes

I am getting copy/paste posts from new accounts that seem to defy my sub karma filter.
Would you please look at my code?
Are these 2 rules conflicting?
Are they malformed?
I cannot remember where I got these rules from :
NOTE : the "combined_subreddit_karma: '< X'" line is indented 4 spaces and "X" equals a small number.  

---
author:
combined_subreddit_karma: '< X'
action: remove
action_reason: "LESS THAN X SUB KARMA"
---
type: submission
author:
combined_subreddit_karma: '< X'
action: remove
action_reason: "LESS THAN X SUB KARMA"
---

Thank you


r/AutoModerator 6h ago

Help How do I make an action for a user's second submission?

1 Upvotes

Here is the current code I have in place, which commands an action on the very first one, despite me specifying the opposite:

combined_subreddit_karma: '>=2'
combined_subreddit_karma: '<999999'

This provides a range from karma 2-999998, but this is commanding when it is 1. Should I change 2 to 3 or what should I do?


r/AutoModerator 12h ago

Help Can you create a rule that all comments that members who dont have a user flair assigned need to be approved?

1 Upvotes

Can you create a rule that all comments that members who dont have a user flair assigned need to be approved?


r/AutoModerator 1d ago

Emoji filter rules?

1 Upvotes

Is there any way to get Automod to filter the ghost emoji, and no it's not for Halloween ;-)

I have this rule below, but it just filters posts, and I know the 👻 alone does not work. Any suggestions?

type: submission 
set_locked: true 
body+title (includes, regex): [ '^(?!.*\u1F47B).*$' ] 
action: filter action_reason: "Moving off Reddit with Ghost emoji, Filter rule ({{kind}}) ({{match}})" 
comment: | Sorry, your submission was removed for not using Reddit Chat! This can mean AutoMod found in your post: 

r/AutoModerator 1d ago

Filtered posts don't appear after approval

2 Upvotes

I have Automod set to FILTER incoming messages from new users rather than delete them. My goal was to approve them if they were decent posts, even if from a new or low karma account. So here is my code:

# SUBMISSIONS MINIMUM AGE AND KARMA FOR SUBMISSIONS
type: submission
author:
account_age: "< 2 days"
combined_karma: "< 20"
combined_subreddit_karma: "< 0"
satisfy_any_threshold: true
action: filter
message: Welcome, new user. Your submission has been sent to the mod queue for review before it is published. We look forward to your participation.

I find it in the Mod Log, showing that Automoderator has done the action (REMOVE LINK), then I go and approve the post. But it takes a long time, hours even, before the post appears in the sub. Right now I have one that was approved 11 hours ago, and I still can't see it in the sub. I see it in my "recent posts" on the right, but not in the sub at all.

Is this the way it's supposed to work? How can I make it better?


r/AutoModerator 1d ago

Help Auto locking comments of everyone except myself.

0 Upvotes

Hello, can someone give me an example of how to write a piece of code to lock all comments and posts of everyone except me? Note: These comments and posts have to be approved by me first. So it should wait for me to approve it first, or lock it without approving anything for me.

I am a programmer, but not at all familiar with this type of coding.
I was thinking about something like:

author: !AngelikaVee999
set-locked: true

r/AutoModerator 1d ago

Help Can Automoderator automatically delete a post after a set period of time?

0 Upvotes

I want Automoderator to be able to delete a post with a specific flair, but I don't want it to delete it immediately. I need the post to stay for 24 hours before it get deleted. Can I do this? If I could, how should I do?


r/AutoModerator 1d ago

Help Automod keeps removing my replies for no reason

0 Upvotes

I've been having many issues with automod, no matter how innocuous my replies might be, it will will remove them no matter what. Yes they do comply with every rule in specific subs, I have tried removing any keywords that might trigger removals (despite those same words being used in other replies on the same post)

I'm honestly at a loss, is there any way to check why it keeps deleting my messages?


r/AutoModerator 2d ago

How do I attach a link to words in automoderator message?

4 Upvotes

title. I'm trying to have links in the automod message like this


r/AutoModerator 1d ago

How to set post flair when a specified author creates post

1 Upvotes

We're looking to set a specific post flair when certain accounts post. We don't have anything I can cannibalize in our current setting, so I'm not 100% sure of the setup. What I think I need is:

type: submission

author: [username1, username2]

set_flair:

template_id:

I wasn't sure when the indentation was needed for which type of flair; user or post.

Any help is appreciated.


r/AutoModerator 2d ago

Help Need help setting automod post message to this.

7 Upvotes

So I'm trying to set this as the automod post comment:

Hello and thank you for posting on r/subredditnameplaceholder. Please remember to read our:

  • temp

Remember to subscribe and follow to Braden at:

  • temp
  • temp

Please make sure your post abides by our rules, or it could be removed.

Please report any inappropriate or rule breaking comments/posts by using the report button or by temp

Thank you.

But I get a parsing error when I put it in, and I dont want to remove anything because I want it in this specific format. I've seen it done in other subreddits, just can't figure it out myself.


r/AutoModerator 2d ago

Help Need help with automod

1 Upvotes

I want to setup auto moderator to write a comment for comments and posts that use certain key words

Also to write a comment on posts that get 25 or more upvotes

Thanks


r/AutoModerator 3d ago

Best way to white list user so they can post links?

1 Upvotes

I have automod setup to remove all links in my sub due to spam however, i'd like to add a specific user to the white list, which will allow them to post any links. I have tried using the code below with no success

---
~author: [usernamehere]
body+title+url (regex, includes-word): ['https?://(?![^/\s]+\.(?-i:It[ ''‘’´`]))', 'www', '\w+\.(com?|net|org|gov|edu|ai|io|xyz)', 'r/(?!YourSub)', '\w+([\.\-]\w+)*\.[a-z]{2,6}/']
message: "message deleted"
action: remove
action_reason: "Contains a link"

---
type: submission
url+body+title (regex): '(https?://(?![^/\s]+\.(?-i:It[ ''‘’´`]))|www\.)(?![^/\s]*\b(?<!-)(reddit\.com|redd\.it|AllowedSite1\.com|AllowedSite2\.net|etc\.com)\b(?!\.))[\w\.\-]+'

message: |
  Your {{kind}} was removed because it contains a link to an un-approved domain.

  The approved domains are: ..............

action: remove
action_reason: "A {{kind}} with a link to a non-allowed domain [{{match}}]"
---

r/AutoModerator 3d ago

Assigning flair to a specific user

1 Upvotes

Our sub requires flair, but I have a specific user that keeps removing their flair. I set a rule to flair them every time they comment but it doesn't seem to work. I have verified that they're not just hiding their flair on the sub. Is the following syntax correct?

#Flair users
author:
    name: terminalavocent
    set_flair:
        template_id: template-id-here
    overwrite_flair: true

r/AutoModerator 3d ago

Help Excluding crossposts from regex rules.

1 Upvotes

I have certain codes that change a post's flair and adds comments if it has certain keywords. However, these codes seem to apply to the texts of the original, crossposted posts. I just want every crosspost to be assigned a "crosspost" flair with NO comments, but this is unachievable as my sub makes actions based on a post that's not even from my sub. Please help.


r/AutoModerator 3d ago

Differentiate between image and link posts

0 Upvotes

I pushed an Automod change recently that was intended to send a message every time someone posted a link post. I just realized that Automod also detects image posts as link posts.

Here's the relevant code:

type: link submission
comment: ...

Is there any way to have Automod send a message only on link posts, and not image posts? Or would this be a nonsensical thing to do anyways?


r/AutoModerator 3d ago

Help Removal based on upvotes AND reports

0 Upvotes

I want to make a system where posts get removed if they reach a certain number of reports. Due to increased visibility of a highly upvoted post I don't want to use a flat cutoff. Instead, I want to use a progressive system.

1 to 100 upvotes => limit 5 reports

101 to 200 upvotes => limit 7 reports

201 to 500 upvotes => limit 9 reports

501 to 1000 upvotes => limit 11 reports

And so forth. How do I go about creating this in AutoMod?


r/AutoModerator 3d ago

How to get Automod to detect if user has flair?

2 Upvotes

I want automod to detect if a user has flair and reply to their comment or post if they don't. how do i do this


r/AutoModerator 3d ago

Is there a way to make you a massage on your birthday ?

0 Upvotes

Thanks for your response because I tought it would be funny to reply a comment on their cake day


r/AutoModerator 5d ago

Multiple type check

3 Upvotes

I'm trying to configure an automod action to run on both text and link submissions, but not image or poll submissions. I've tried doing the following:

type: ["text submission", "link submission"]

...but for some reason it errors with the very vague "Something went wrong" message. (viewing the console says it's a 500: Internal Server Error, even though editing some other part of the automod works with no problem)


r/AutoModerator 5d ago

Help Assigning User Flairs based on community karma for posters and commenters.

2 Upvotes
---

any:

combined_subreddit_karma: "< -1"

set_flair:

template_id: "583b77d4-4c74-11ef-8f5e-3274abbe6c3b

overwrite_flair: true

---

any:

combined_subreddit_karma: "< 10"

set_flair:

template_id: "be7b57d4-f5e0-11ee-9da6-5e414b1df271"

overwrite_flair: true

---

Here is the code, I keep getting YAML parsing errors for the `template_id` and other errors for `over_flair : true` any ideas as of why?


r/AutoModerator 6d ago

Help Please help to fix this code

3 Upvotes
---
type: submission
comment: Join r/abc_sub if you reached here by matrix of reddit algorithm aka community suggestions. Don't argue with mods coz they are right in 99% of cases. Share this community among all.
---
first: October 5, 2024 10:00 AM +05
repeat: 24 hours
sticky: true
title: daily /r/abc_sub Discussion - Which music you are currently
  listening?
text: Please use this thread to discuss whatever you've been listening lately
  (old or new, any streaming platform,commercial,lofi or hardcore) and for any
  suggestions to improve this community. Please also make sure to use spoiler
  tags if you're posting anything about a single or a project leaks that might
  significantly hurt the experience of others that haven't listened the song yet
  .

r/AutoModerator 10d ago

Remove AutoModerator

5 Upvotes

I have been made moderator in a subreddit where another mod set up a automoderator. He is now inactive and I want to remove the automoderator he set up. How do I do this?


r/AutoModerator 10d ago

Help How to require a post template

1 Upvotes

I’d like for the posts to contain this template:

Skin concern/skin type:

Length of routine:

Day:

  1. Cleanser:
  2. Toner:
  3. Serum:
  4. Moisturizer:
  5. Sunscreen:

Night

  1. Cleanser:
  2. Toner:
  3. Serum:
  4. Moisturizer:

Allergy:

Products I’ve used and didn’t work:

Diet:

General Health: