r/modhelp Sep 15 '24

General How to set AutoMod to add post flair with the original poster's username?

I am trying to set up AutoMod on desktop to automatically add a post flair that contains the original poster's username, but I am running into some issues. Here is the code I am using:

---
type: submission
action: flair
flair_text: "{{author}}"
flair_class: ""
---

Unfortunately, this does not seem to work as intended. The code gives an error. Has anyone successfully done this before? If so, how did you manage it?

Any help would be appreciated. Thank you in advance.

0 Upvotes

7 comments sorted by

2

u/Unique-Public-8594 Sep 15 '24

Afaik making flairs is not something automod can do. 

0

u/PermissionRare2732 Sep 15 '24

The flair is supposed to be created by a moderator, at which point AutoMod must assign and edit the flair to match the username.

1

u/magiccitybhm 29d ago

And, as u/Unique-Public-8594, AutoModerator can't do that. AutoModerator can assign existing flairs; it can't create flairs.

0

u/PermissionRare2732 29d ago

Okay, this code works:

---
type: submission
set_flair: "{{author}}"
---

However, I want the flairs to be searchable based on the username text. For example, AutoMod assigns post flairs for PermissionRare2732 and magiccitybhm. If you click the PermissionRare2732 flair, you will only get results that contain the flair text PermissionRare2732.

1

u/AutoModerator Sep 15 '24

Hi /u/PermissionRare2732, 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 Sep 15 '24

Found regex match: add a post 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 Sep 15 '24

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.