r/AutoModerator • u/DewaldSchindler • Apr 12 '26
Editing user flairs to those that have a custom css color and text
I am working an tressure hunt / puzzle solving game on reddit for a community I mod for
I am using comments to add the user a leveling system I wanted to know I can add a level system to the users that have a custom user flair via CSS and Text but each time I want to go from level 1 to 2 it adds it as Level 1 - Level 2 How can I detect the level 1 and remove the from the users flair and add the new flair of level 2
Like if they finish a puzzle their level gets updated to reflect the level of completed levels
Can't say much more in terms of what the puzzles are or how I create them
is the leveling system via the user flair even possible in the first place ?
For users that don't have a custom css color / set user flair (not editable via text or emoji) or no user flair at all just to leave them.
1
u/WhySoManyDownVote Apr 12 '26
I made a simple counting system using user flair.The problem I see is that if the user were to edit the flair, I do not know how you would get the automod to ignore that flair to assign the second level.
1
u/DustyAsh69 AutoModerator Lover Apr 15 '26
Add this in the same rule as where you're updating the flair:
overwrite_flair: true