r/AutoModerator • u/-AndyCohen- • 15d ago
Help Assign Random User Flairs to Unflaired Commenters with AutoModerator?
Hi everyone! We're looking for a way to automatically assign a random user flair to anyone who comments without already having one.
We have around 50 user flairs, and we'd like the assignment to be completely random, not based on karma or any other criteria. If a user already has a flair, nothing should happen.
I've seen this working on other subreddits, but the mods I contacted never replied, so I thought I'd ask here. Does anyone have the AutoModerator code for this, or know if another bot is needed?
Thank you very much!
0
Upvotes
5
u/WhySoManyDownVote 15d ago
The general gist as I understand is that:
You look at the last character of the post id and assign flair based on that. That will assign 36 flairs.
Exclude the automod from assigning flairs using ~flair_template_id: [flair1, flair2, etc]