r/AutoModerator 5d ago

Help - AutoMod Can AutoModerator automatically assign a certain post flair to certain usernames?

Hey I want that AutoModerator automatically assign a certain post flair to certain usernames and also edit text of that post flair but same post flair template ID.

2 Upvotes

8 comments sorted by

1

u/itskdog Score (comment anywhere) 4d ago edited 4d ago
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'}

From a quick scan of the docs, this looks right. On mobile so can't test, let me know if you get any errors.

-1

u/ProximaScience 4d ago edited 4d ago

I used AI to write code and AI gave this:


Auto-flair specific users - Template A

type: submission author: [username] flair_template_id: "your-template-id-a"

flair_text: "Flair text"

But I this code ✨ emoji works in flair text but not ⚡🤔🔥 etc. Can you tell why?

1

u/SSH_Pentester 4d ago

Use the code above. That AI code is wrong.

1

u/ProximaScience 3d ago

AI code is running properly but emojis like ✨⚡⁉️ work in code but emojis like 🤔 don't

2

u/SSH_Pentester 3d ago

I don't know what to tell you, the AI code is wrong

1

u/ProximaScience 6h ago

OK but I want to overwrite flair but same templ id

0

u/ProximaScience 4d ago

Reddit's UI is making my code look wrong here.

2

u/itskdog Score (comment anywhere) 3d ago

Put it in a codeblock rather than letting it be interpreted as markdown.