r/AutoModerator Jan 27 '21

Wiki Updates 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
44 Upvotes

r/AutoModerator 3h ago

Invalid Media Error What am I doing wrong?

1 Upvotes

type: submission

comment: | Welcome to [r/sub name]

Just a polite reminder:

Sub Name is about all News and Politics throughout the State no matter the News Source. Please keep Your News Submissions to State Name Only. All are welcome to contribute whether It is News or Comments as long as You abide by Reddit Rules/Policies and the Rules/Policies of This Sub.

The Title states Uncensored BUT It is not Unmoderated!

Chronic Violators will be removed without warning.

Please read the Sub Rules and Guidelines before participating.

comment_stickied: true

**Thank You in advance for the Helps. I'm no Coder or Programmer.


r/AutoModerator 1d ago

Help - AutoMod comment trigger to sort and sticky parent_submission

4 Upvotes

Hello all. I have the following code that will sticky and set sort order of the parent submission, when trigged by a comment from OP. The code works as is.

I want to also remove the trigger comment, but when I add action: remove the script fails to trigger.

type: comment
author:
    is_submitter: true
body: '!sort'
action: remove
message: |
    Post has been stickied and sorted!
parent_submission:
    set_suggested_sort: new
    set_sticky: 1

when the action line is omitted it fires correctly. when it is added it does not. mod log shows:

28 minutes ago AutoModerator set suggested sort link "Test post" by _Face
28 minutes ago AutoModerator stickied link "Test post" by _Face ([highlight] )
28 minutes ago AutoModerator stickied link "Test post" by _Face

when I add the action line, no automod actions are logged. I tried adding the action_reason as well, and it did not change the outcome.

Where am I messing up? Please and thanks!!


r/AutoModerator 1d ago

How Do I Setup Auto Moderator?

1 Upvotes

I have been trying to setup auto moderator and I don't know how to can anyone help me set it up?


r/AutoModerator 1d ago

Solved Pinned AM Sticky on Filtered and Removed Submissions

2 Upvotes

Hi,

I'm currently testing a couple of common AM rules using an alt whose posts either go live automatically, or filter to the queue based on a karma + CQS check.

I also have a rule to trigger an automated AM sticky on all submissions. When my alt passes the karma/CQS check, the sticky functions properly. When the alt's posts get filtered for review, the sticky doesn't appear on the post even if I approve the content.

I have the same seven rules programmed in the public sub I'm conducting the tests for and the sticky appears on all posts without fail, including those that get filtered or removed.

Is the sticky failing to appear because I'm conducting my tests in a private sub or could this be a bug?

I'd love some insight from an AM Wizard please. Thanks in advance!

Edit: Strikethrough to correct my silly assertion


r/AutoModerator 2d ago

Help - AutoMod How do I setup the automod to display in the comments section with a message on each post?

2 Upvotes

I'm not sure if u know what im talking about but yk how when you make a post in some subreddits you get a pinned comment from automod usually reminding people of the rules? I'm trying to figure out how to set that up on my subreddit. If anyone can help me that'd be awesome.


r/AutoModerator 2d ago

Not Possible with AM Is there a way to have automod keep a running tally of how many times a word has been said on a subreddit?

3 Upvotes

For example, let's say I run the Garfield subreddit (I wish), and I want to make it so every time someone says "Lasagna" it replies with a comment that says something like "you mentioned lasagna for the 17433795315th time" in the history of this subreddit


r/AutoModerator 5d ago

Help Looking for support on enforcing CW/TW

3 Upvotes

Hi folks! I moderate r/cavaliers. We've implemented a rule requiring certain posts -- primarily related to animal illness and death -- to be marked with a CW/TW tag in their titles.

Currently, we're holding all posts for approval, then manually rejecting posts that meet the criteria with a saved response that provides specific instructions, plus the original post text for ease of reposting. We also have an Automations tooltip that pops up under relevant posts (that most people ignore). This is not a great system!

Additional complications:

  • While SOME of the posts we want to flag as "need CW/TW" have the relevant flairs (Medical/Memoriam), not all of them do;
  • While MANY of the posts we want to flag as "need CW/TW" use keywords/strings that we can easily flag ("sick," "rainbow bridge", "MVD"), not all of them do -- and sometimes the keywords/strings will toss a false positive

Any ideas on how we can use Automod or other tools to provide instant enforcement of the rule AND instant assistance to posters so they can re-post ASAP? I think ideally, it would look something like:

  • 80%+ of posts that need CW/TW tags and that don't have them are flagged via keyword ("sick," "rainbow bridge") or flagged via flair (medical, memoriam)
  • Then:
    • BEST VERSION: post is stopped at the posting screen (I think this is impossible)
    • ALSO BEST VERSION: post title is automatically edited with CW/TW tags, user is informed about the edit (I think this is impossible)
    • VERY GOOD VERSION: post is automatically and immediately removed, user is automatically and immediately messaged with instructions AND a rewritten version of their title with the CW/TW tag in it AND the original post text to make it as easy possible to repost

Thoughts? Very open to suggestions and very grateful for any help!


r/AutoModerator 4d ago

Solved Does the {{match}} placeholder not care about capture groups in RegEx?

1 Upvotes

AutoMod rule I'm using:

body (includes, regex): ['(?i:\[.*?\]\(.*?mtg\.fandom\.com\/wiki\/(.+?)\))']

comment: |
    [https://mtg.wiki/{{match}}](https://mtg.wiki/{{match}})

Input:

May I please have the other Wiki for [Ravnica's Factions](https://mtg.fandom.com/wiki/Ravnica#Guilds) and reply that to me?

Expected output:

[https://mtg.wiki/Ravnica#Guilds](https://mtg.wiki/Ravnica#Guilds)

Actual output:

[[https://mtg.wiki/](https://mtg.wiki/)[Ravnica's Factions](https://mtg.fandom.com/wiki/Ravnica#Guilds)]([https://mtg.wiki/](https://mtg.wiki/)[Ravnica's Factions](https://mtg.fandom.com/wiki/Ravnica#Guilds))

This displays as:

[https://mtg.wiki/Ravnica's factions](https://mtg.wiki/Ravnica's factions)

The RegEx is 100% correct in the sense that the capture group is capturing Ravnica#Guilds only and nothing else. It seems that AutoMod isn't interested in this capturing group but instead just takes the entire RegEx and uses that for {{match}}.

Here's a link to regex101 with the given example:

https://regex101.com/?regex=%28%3Fi%3A%5B.*%3F%5D%28.*%3Fmtg.fandom.com%2Fwiki%2F%28.%2B%3F%29%29%29&testString=May+I+please+have+the+other+Wiki+for+%5BRavnica%27s+Factions%5D%28https%3A%2F%2Fmtg.fandom.com%2Fwiki%2FRavnica%23Guilds%29+and+reply+that+to+me%3F&flags=gmui&flavor=python&delimiter=%22


r/AutoModerator 5d ago

Help ¿Cómo pongo un automotor?

0 Upvotes

Quiero poner un automoderador en mi comunidad u/DlacofomoideusVII


r/AutoModerator 5d ago

Solved Auto moderator sticky auto close.

1 Upvotes

I've noticed that some of my auto‑moderator stickies on my subreddit are auto‑closed rather than being automatically opened and pinned to the top. Is there a way to prevent that?


r/AutoModerator 6d ago

Help Is there a way for the AutoModerator to mark a post as spoiler based on specific report it receives

2 Upvotes

I looked around quite a bit but couldn't find any way to do it. There don't seem to be any Devvit apps for it either. Before I started editing the AutoModerator config, I assumed this would be an obvious feature.


r/AutoModerator 7d ago

Mod Post Expanding the scope of the subreddit r/AutoModerator

51 Upvotes

This post is about a very minor, teensy-weensy change to the subreddit here, but it is significant enough to merit a formal post about it.

r/AutoModerator was originally created to discuss the u/AutoModerator moderation tool and support moderators in using it. Historically, AutoModerator was unique among moderation tools, but over the years, admins have developed Other-Tools which supplement or facilitate similar kinds of effects as AutoModerator. I had mentioned this earlier this year:

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.)

Today is that another day.

As the full suite of moderation tools has matured, the community of moderators familiar with configurable moderation tools has similarly evolved. Many times these days, people will ask questions here, and the solution to their questions may or may not be with AutoModerator the mod tool, but the people in AutoModerator the subreddit still know the answer. There is a community of peer support among technical-oriented moderators here, and it is our desire to serve that community.

We have, even some time ago, updated the rules and description on r/AutoModerator to reflect this trend, changes in bold:

  • Rule 1 - Stay on Topic - /r/AutoModerator is for moderator discussions about the AutoModerator program and similar automated moderation tools. - Report as: Off-topic / Unrelated to AutoModerator or Moderation Tools

  • Rule 2 - Behave and Be Respectful - Be nice. Report as: Incivility, insults, trolling, aggression, or other malicious behavior

  • Rule 3 - Moderation complaints - /r/AutoModerator is a support space for moderators. This is not a place to argue or complain about moderation actions, moderators, or AutoModerator performing its intended functions. - Report as: User is complaining about moderation

Effectively, this means that moderators who have questions about configuring subreddit settings and mod tools are welcome to post here, even if those questions are not necessarily about AutoModerator the original moderation bot. For examples, this includes questions regarding Safety Filters (eg Crowd Control, Harassment Filter), Devvit Mod apps (eg Auto-Modmail, FloodAssistant), Automations (aka Post and Comment Guidance), and configurable tools like these.

Let us know if you have any questions or concerns, about this change for the subreddit, or about the subreddit in general.

We are looking for feedback regarding updating our post flairs, which historically have been oriented around "Help", "Solved", "Not AutoMod", "Not Possible with AutoMod" and "Not Possible". We have recently added post flairs for "Wiki Updates" and "Guide", though they are still set to mod-only. We are adding a devvit app which allows people to subscribe to get notifications for specific post flairs, so that function would be paired well with clear guidelines or categories for post flairs.


r/AutoModerator 6d ago

AutoMod invite problem

1 Upvotes

New subreddit (r/ChateauDelusions, created -24h ago). AutoModerator invite is stuck in "pending" and won't auto-accept even after removing and re-inviting. Trying to set up the config/automoderator wiki page is throwing inconsistent errors - "unsupported media type," "forbidden - restricted_page," and "internal error" - across different attempts, even with a minimal single-rule config. Own mod permissions show "Everything." Any idea what's going on?


r/AutoModerator 7d ago

Solved Trouble with multi-line comment.

0 Upvotes

Hello!

Im working on making a message for AutoMod to comment on every post submission, and I’m having trouble with including indents; I’m not sure where I’m going wrong, but it keeps returning “unsupported media type” when i try to save the changes.

Here is the code:

---
type: submission
comment: |
What’s up chat?! I’m AutoBart, and I comment on every post.

Make sure to read our rules, and remember we are not a part of Joe’s official team!

Catch you later!

---

Here is the error code i get when i try on old Reddit;

YAML parsing error in section 7: while scanning a simple key
in "<unicode string>", line 3, column 1:
What’s up chat?! I’m AutoBart, a ...
^
could not found expected ':'
in "<unicode string>", line 5, column 1:
Make sure to read our rules, and ...
^

Any help would be appreciated!


r/AutoModerator 12d ago

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

24 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 13d ago

Wiki Updates New "Old" Wiki pages - Backups from r/reddit.com including the AutoModerator full-documentation page and other meta or moderation resources

Thumbnail reddit.com
52 Upvotes

We recently noticed that admins had placed an age-restriction on the "before subreddits" subreddit, r/reddit.com, which is where admins hosted the original reference documents for AutoModerator and other moderation or site-wide policies or resources. While the age restriction on the subreddit as whole make sense considering the wide variety of content hosted there, unfortunately, this also means that those not-nearly-as-naughty wiki pages attached to that subreddit are also now age-restricted, forcing users and moderators in regions which require age-verification to verify their ages if they want to access those wiki pages.

We believe that users and moderators should have access to the contents of these wiki pages without being gated by age-verification. While the most important AutoModerator pages are our main concern, there are many similar pages which serve as historic references, informing how reddit and moderation have evolved over the years.

We had asked admins about this dilemma, but so far, no admins have reached out to us about any solution or plans. (To be clear: The active moderators of r/AutoModerator are not admins ourselves.)

To make moderation resources more freely available to moderators, we have copied the contents of a selection of relevant and historic wiki pages from r/reddit.com. All of the backups are listed on:

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

  • Relating directly to AutoModerator:

    • The Full-Documentation page - Quite literally the most important resource, which is also linked at the top of every moderator's AutoModerator config editor page. We specifically asked if admins could redirect this page to the subreddit here.
    • The still-relevant Introduction, Standard-Conditions, and Writing-Basic-Rules pages.
    • The historic Changelog and Converting-to-New pages.
  • Relating to Moderation in general:

    • The Moderation and Moderation-Intro pages, a bit outdated, but still a useful reference.
    • Moddiquette and HealthyCommunities (Moderator Guidelines) - These pages pre-date the Moderator Code of Conduct, and to this day, many people are unaware that some things that were suggested in these pages are not actually part of the current Moderator Code of Conduct enforced by admins. Some moderator teams still hold themselves to these standards.
    • The UserAgreement now lives on redditinc.com, but to view revisions older than 2018, you have to look at the wiki page history.
    • The ProhibitedAds page predates the many separate pages of the current ads policies. Moderators may often be interested in knowing which kinds of content are not allowed in ads when defining their own rules around similar content.
    • Similarly, the SelfPromotion page, while no longer enforced by admins, is still informative to users and moderators that do hold that standard in their own subreddits.
  • Relating to Reddit in general:

    • The FAQ, Voting, and Reddit_101 pages - full of information helpful to newer redditors. Sometimes these tidbits are helpful to moderators when answering user questions. Much but not all of these pages have been added to the RedditHelp site.
    • The Reddiquette, Pressiquette, Brandiquette, and Bottiquette pages - fair reference for guidelines that may or may not apply to your subreddit needs.
    • The Markdown and Wiki pages, which contain information not listed on their respective RedditHelp replacements.

r/AutoModerator 13d ago

Unsupported Media Type

3 Upvotes

Using the codes I found here under the pinned wiki topic, I tried to set up my automod page, but it keeps telling me unsupported media type when I click save.

Here is the code I'm using. Is it because I just copied and pasted?

---

type: submission

author:

account_age: "< 1 days"

action: remove

action_reason: "New user"

---

type: submission

author: comment_karma: "<10"

action: remove

action_reason: "Low karama account"

---

type: submission

author:

comment_karma: "< -50"

action: remove

action_reason: "Low karma user"

---

type: text submission

body_shorter_than: 1

action: remove

action_reason: "Self post without text"

---

type: text submission

body (regex, full-text): ['(\[[^\]]*\]\()?https?://\S+\)?']

action: remove

action_reason: "Link-only self post"

---

type: comment

body (regex, full-text): ['/?r/\w+']

action: remove

action_reason: "Comment is just /r link [{{match}}]"

---


r/AutoModerator 14d ago

Manual review of first contributions

1 Upvotes

I tried to set up a rule that would filter a users first contribution to the sub, so that I could manually review it (as a way to avoid letting spam posts/comments on the sub).

However, it's not working properly, and I'm not entirely sure why. It'll let someone post, but then flag their comments for some people. For others it'll flag their comments even after their first manual review resulted in an approval.

```

Filter all first posts from first-time contributors

author: post_subreddit_karma: < 1 comment_subreddit_karma: < 1 satisfy_any_threshold: true action: filter moderators_exempt: true message: | Your {{kind}} has been held for manual review by our moderators and will be visible once approved. Thank you for your patience!


```

What am I doing wrong?


r/AutoModerator 14d ago

Help Assign Random User Flairs to Unflaired Commenters with AutoModerator?

0 Upvotes

Hi everyone! We're looking for a way to automatically assign a random user flair to anyone who comments without already having one.

We have around 50 user flairs, and we'd like the assignment to be completely random, not based on karma or any other criteria. If a user already has a flair, nothing should happen.

I've seen this working on other subreddits, but the mods I contacted never replied, so I thought I'd ask here. Does anyone have the AutoModerator code for this, or know if another bot is needed?

Thank you very much!


r/AutoModerator 15d ago

Help How do I also match words with spaces?

Thumbnail
4 Upvotes

r/AutoModerator 15d ago

Trying to post a pinned comment when links from certain domains are posted, but getting unsupported media error

1 Upvotes

Whenever a user posts a link to certain websites, I would like to have Automoderator post a comment similar to this one.

This is the code that I am trying to use:

---
#5 Low-quality link posts
type: link submission
domain: ["somedomain.com", "anotherdomain.com"]
comment: 'Users often report submissions from this site for being low-quality and/or sensationalized articles. Readers have a responsibility to be skeptical, check sources, and comment on any flaws. You can help improve this thread by linking to media that clarifies, verifies or questions this article's claims. Your link could help readers better understand this issue.'
comment_locked: true
comment_stickied: true

---

When I try to edit and save the Automoderator configuration, I get an error message "Unsupported Media Type". Anyone know what I am missing? I'm sure it's something simple, but I haven't been able to figure it out.


r/AutoModerator 15d ago

How do I make an automod on the mobile app?

Thumbnail
0 Upvotes

r/AutoModerator 16d ago

How do I filter posts by language automatically?

1 Upvotes

I have a mod focused in a specific language. Can I automatically delete posts in different languages?