August 25, 2026 · The Minely team
How to build a verification bot with AI (gates, captcha, kick timers)
Open servers get botted; verified servers survive. A verification bot is the wall: new members see nothing until they prove they are human with one click, and the ones who never do get quietly removed. It is unglamorous and absolutely load-bearing.
What a verification bot actually is
A verification bot gates new members behind a challenge — a button click or a simple captcha — before they can see the server. Passing grants the verified role; failing to verify within a time limit removes the account politely.
How it works under the hood
On join, the bot assigns an unverified role with access to only the verification channel and sends the challenge. A button click (or captcha answer) grants verified, removes unverified, and unlocks the server. A scheduled job kicks members still unverified after the configured window, with a DM before the kick explaining why. Raid mode tightens everything: longer captcha, faster kicks, staff alerts.
The prompt that builds it
You do not have to write this yourself. A precise description is enough:
a verification bot that gates new members behind a button or captcha, grants a verified role on success, and kicks unverified accounts after 24 hours with a warning DM
Name the commands, the permissions, and the exact messages players see. Precision here is what makes the first build land close.
Building it in the right order
- Assign the unverified role and channel on join.
- Build the button or captcha challenge.
- Grant verified on success and log it.
- Implement the kick timer with a pre-kick DM.
- Add raid mode with staff alerts.
The details that matter in production
In production, the first thing you learn is that the happy path is the easy half. The edges are where the work lives: restarts, protection interactions, full inventories, and players who treat every system like an exploit puzzle. Build for those from day one and the launch weekend is quiet instead of a fire drill.
Storage and cleanup deserve special attention. Write state as it changes rather than on shutdown, clear per-player state on quit and on world change, and make every admin-facing action leave an audit line. The first time something goes wrong, those records are the difference between a two-minute review and an evening of guessing.
Finally, test like a hostile user. Spam-click every GUI, rejoin mid-action, try the command with no permission and with every permission, and run it while the server is under load. The bugs that survive that pass are the ones worth shipping.
Tuning it after the first build
A button stops 90 percent of bots; a text captcha stops 99. Start with the button and escalate during raids. The kick window (12 to 48 hours) should be generous for real users in odd time zones, with a DM at the halfway point.
Tips that save you a rebuild
- Log every verification; raid forensics start there.
- Give staff a /vouch command to verify manually for edge cases.
- Never let the unverified role see anything but the gate channel.
- Test the kick timer on a dummy account before trusting it in production.
Questions people ask
Button or captcha?
Button for normal days, captcha for raids. The bot supports switching per guild state.
What if Discord's own gate exists?
Use server membership screening as the first layer and the bot as the second; they complement each other.
Can verified be revoked?
An /unverify command that returns the member to the gate for re-review.
If you can describe it, you can ship it. Take the prompt from this guide, tweak one detail, and build your version tonight.
