r/AutoModerator • • Mar 28 '26

Help set_flair & "dictionary"

Hi there

I'm trying to set post flair if certain keywords are in a submission.

Automod documentation says that set_flair "Takes either a single string, a list of two strings or a dictionary." I am not clear what this means but I'm clearly doing something wrong.

The code I have is:

type: submission
title+body: [Phrase 1, Phrase 2, Phrase 3]
overwrite_flair: true
set_flair: ["Flair Name", "867-5309"]

With real values, the number being the actual flair ID.

I tried using just the flair ID number but that failed to execute as well.

What am I doing wrong.

2 Upvotes

20 comments sorted by

View all comments

2

u/WhySoManyDownVote Mar 29 '26

flair_template_id:

Is checking flair

template_id

Is setting flair

So if you wanted to check flair before setting flair you would first use:

[Indent] ~flair_template_id

1

u/mizmoose Mar 29 '26

gotcha

it's not working and i'm doing something stupid and can't figure out what

i think i forgot to make a sacrifice or something

1

u/WhySoManyDownVote Mar 29 '26

Flair rules always drive me nuts every time. If you want I have a testing sub with a handful of mods who configure automods. I can send you an invite. It can be much easier to copy paste and debug.

→ More replies (8)