Friday, June 19, 2026

I made a free Discord bot that auto-assigns roles based on the NFTs people hold (Flare/Songbird/Ethereum)


I help run a couple of small NFT communities and got tired of manually checking who still holds what before handing out roles, so I built a bot to do it for me. Posting it here in case it's useful to someone, it's free, and it's my own project so feel free to tear it apart.Basically: a member connects their wallet, signs a message to prove it's theirs, and the bot gives them Discord roles depending on how many NFTs they hold from a given collection. Works on Flare, Songbird and Ethereum. If they later sell or move the NFTs, the role comes off on the next check, that was the whole point for me, since most setups only ever grant roles and never clean them up.Couple of things I was picky about:Linking is just a signature, not a transaction. No gas, read-only, can't move funds. People are (rightly) wary of signing things, so I kept it to a plain login message.The bot only asks for "Manage Roles", so it can't read messages or mess with roles above its own.Mobile was the annoying part. Discord login just shows a blank page inside wallet in-app browsers, so I added WalletConnect, now you can do the whole thing from Safari/Chrome with Bifrost or whatever.Admins set the rules with a slash command (hold 1+ of this contract on Flare → get u/Holder), and there's a one-click verify button you can drop in a channel.Here if you want to poke at it: https://ift.tt/ElVX5GO still early and there are definitely rough edges. Would honestly appreciate feedback, especially on the linking flow or anything that feels sketchy security-wise. via /r/FlareNetworks https://ift.tt/3eEk9xK

Comments System

Disqus Shortname

Disqus Shortname

designcart
Powered by Blogger.