I built a custom Discord bot for a large student server I run, which brings together students from different LBS schools across Sweden. Because our community has unique needs, a normal “off-the-shelf” bot didn’t really meet our needs, so I developed a bot with a few tailor-made features that fits our needs.
First, I created a custom ban system instead of using Discord’s built-in option. Discord’s default ban system applies an IP ban, which was a major problem for us since hundreds of students share the same school Wi-Fi. Instead, this system automatically kicks banned members if they try to rejoin.
To handle spam from compromised accounts, the bot also monitors a honeypot channel. If an account sends a message there, it immediately mutes them without needing a moderator.
Finally, the main reason for creating the bot was to build an automated verification system that ensures members are actual LBS students. The bot generates a unique code for each Discord user, who then submits it through a Google Form using their official school email. The bot verifies the submitted code against the user’s ID, and if everything matches, it grants them the verified role and full access to the server.
The main server is a private server after all but most features work great on the demo server!
- 5 devlogs
- 35h