Assigning User Flairs based on community karma for posters and commenters.

https://www.reddit.com/r/AutoModerator/comments/1if9eqq/assigning_user_flairs_based_on_community_karma/

created by Perpetual_Thursday_ on 01/02/2025 at 16:01 UTC*

2 upvotes, 4 top-level comments (showing 4)

`

any:

combined_subreddit_karma: "< -1"

set_flair:

    template_id: "583b77d4-4c74-11ef-8f5e-3274abbe6c3b

overwrite_flair: true

---

any:

combined_subreddit_karma: "< 10"

set_flair:

    template_id: "be7b57d4-f5e0-11ee-9da6-5e414b1df271"

overwrite_flair: true

---

`Here is the code, I keep getting YAML parsing errors for the`template_id`and other errors for`over_flair : true` any ideas as of why?

Also don't just link me to older posts, I cannot figure out what they are talking about.

Comments

Comment by Unique-Public-8594 at 01/02/2025 at 16:15 UTC

2 upvotes, 0 direct replies

I wish automod error messages were redone to provide helpful troubleshooting.

Comment by Unique-Public-8594 at 01/02/2025 at 16:07 UTC

1 upvotes, 1 direct replies

thank you for using codeblock!

Maybe

type:  any

?

Comment by Unique-Public-8594 at 01/02/2025 at 16:11 UTC

1 upvotes, 0 direct replies

Maybe this

is helpful for your code format?

Comment by barnwater_828 at 03/02/2025 at 17:32 UTC

1 upvotes, 0 direct replies

Because it took me 3 days to figure the same thing out - here is what I landed on by pieces together code sprinkled around reddit - you will need to adjust to fit what you want it to say/do, but heres where you start:

These are just two from what we are using, so you will need to add more depending on how many levels you want. You must start them at the highest level first and work down to the smallest. I'm happy to answer questions if you have any.

---

Identify Platinum Level users and apply Platinum Level flair

author:

~flair_template_id: [2b233ee8-da6e-11ef-ae54-c253d1a77b5a]

combined_subreddit_karma: '<1000'

set_flair:

template_id: 2b233ee8-da6e-11ef-ae54-c253d1a77b5a # Platinum Level Flair ID

overwrite_flair: true

Moderators_exempt: true

---

Identify Gold level users and apply Gold Level flair

author:

~flair_template_id: [a07ead54-da6d-11ef-a46a-4e6315709b6c]

combined_subreddit_karma: '>=500'

combined_subreddit_karma: '<999'

set_flair:

template_id: a07ead54-da6d-11ef-a46a-4e6315709b6c # Gold Level Flair ID

overwrite_flair: true

Moderators_exempt: true

---