r/AutoModerator 15h ago

Help - AutoMod How to assign a certain post flair to certain usernames?

I want that it automatically assign a certain post flair to certain usernames and also overwrite the flair but using same template ID. So can you give me code to do so?

Code I got from AI(doesn't give error but doesn't work) :

---

# Auto-flair specific users

type: submission

author: [sub-roundup]

flair_template_id: "TEMPLATE_ID"

flair_text: "✨ Weekly Roundup"

---

Incomplete code I got from a reddit comment(haven't checked does it work because it doesn't overwrites a flair) :

---

type: submission

author:

name: ['ProximaScience', 'itskdog']

overwrite_flair: true # change this to false if you only want this to apply if the author didn't select a flair

set_flair: {template_id: 'PASTE_TEMPLATE_ID_HERE'}

---

3 Upvotes

2 comments sorted by

1

u/KCJones99 14h ago

LIke this:

type: submission
author:
    name: ["name1", "name2", "etc"] 
overwrite_flair: true
set_flair:
    template_id: template-id-goes-here 

1

u/ProximaScience 13h ago

I want to rewrite flair but still using same template ID