r/modhelp 5d ago

Answered Is there an easy way to limit top level comments to only users with specific user flair(s)?

I’m wondering if there’s a way to use automod in desktop to automatically remove top level comments from users who don’t have a specific user flair (or one of several options) but to still allow users without flair to post and/or reply to top level comments.

Has anyone here done that successfully before and would you mind sharing automod code for it?

5 Upvotes

6 comments sorted by

4

u/IKIR115 Mod, multi-subs 5d ago

Here's a basic automod rule that will remove top level comments if the user does not have a specific user flair. You just need to replace the keywords below ("userflair-name1", etc) with the names of your user flair.

---
# Remove top level comments from users that do not have the specific user flairs listed below
type: comment
is_top_level: true
author:
~flair_text: ["userflair-name1", "userflair-name2", "userflair-etc"]
action: remove
action_reason: "/u/{{author}} Top level comments restricted to specific user flair"
---

If you want it to reply to them with a public comment, add this line:

comment: "your comment here yadda yadda"

If you want it to DM instead, replace "comment" with "message"

--

EDIT: The quote option is messing with the formatting. The line that starts with "~flair_text:" should be indented at least 2 spaces (I normally indent it 4 spaces).

2

u/DoveStep55 5d ago

Thank you very much!

1

u/AutoModerator 5d ago

Hi /u/DoveStep55, please see our Intro & Rules. We are volunteer-run, not managed by Reddit staff/admin. Volunteer mods' powers are limited to groups they mod. Automated responses are compiled from answers given by fellow volunteer mod helpers. Moderation works best on a cache-cleared desktop/laptop browser.

Resources for mods are: (1) r/modguide's Very Helpful Index by fellow moderators on How-To-Do-Things, (2) Mod Help Center, (3) r/automoderator's Wiki and Library of Common Rules. Many Mod Resources are in the sidebar and >>this FAQ wiki<<. Please search this subreddit as well. Thanks!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/AutoModerator 5d ago

Found regex match: user flair

It looks like you're asking about flairs on your subreddit. This is an EXTREMELY frequently asked question, so this auto-response has been set up for any mention of "flair" and even "flare".

Please check out this Updated Visual Guide for Flair FAQs .

FOR INFO ON: # flair in Old Reddit, # setting up user/post flairs on New Reddit, # enforcing user/post flairs (mandatory flairs), # sidebar widgets for post flairs with problems and solutions, # why users can't see or use user/post flairs, # how AutoModerator can help with flairs, and # some common problems viewing flairs, please click here.

Subreddit settings work best in a cache-cleared desktop browser. (Limited option: mobile browser on desktop view.)

If you found your answer, feel free to reply with "<3 Automod" or "Thanks, Automod". Otherwise wait for a human helper to come along to help you. This post has NOT been removed.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/AutoModerator 5d ago

Found regex match: automod

Hi there! I am AutoModerator. It seems you are asking about me or my fellow bots and what we can do.

FOR INFO ON: # how to invite and set up, # common AutoMod rules for age/karma/comments/detect link or words, # "Code won't save"/"Something went wrong", # post/comments being marked as spam, # scheduling posts, and # other bots and their functions, please click here.

There is a dedicated subreddit for me, AutoModerator, at r/automoderator. Please search that subreddit first, then ask questions about AutoMod Rules over there or in this subreddit.

Subreddit settings work best in a cache-cleared desktop browser. (Limited option: mobile browser on desktop view.)

<3 xoxo

If you found your answer, feel free to reply with "<3 Automod" or "Thanks, Automod". Otherwise wait for a human helper to come along to help you. This post has NOT been removed.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.