Simple Discord verification bot

LundgrenMay 26, 2026guide

I built a Discord bot that lets your members verify their War Era account themselves.

How it works

The bot posts a message with a Verify button. A user clicks it, enters their War Era username, and the bot generates a one-shot token like WV-7K2M9X.

To prove they own the account, they rename any one of their companies in War Era to contain that token. Click Confirm and the bot re-fetches their companies, matches the token, and assigns the verified role.

Only the real account owner can rename their companies, so the rename is the proof. Tokens are random, expire in 15 minutes, are bound to the Discord user that started the flow, and get deleted on a successful match. After verifying, the user can rename the company back to whatever they like.

What admins get

A small set of slash commands, admins only:

  • /verify-config set-verified-role, the role every successful verification gets

  • /verify-config allow-country, restrict verification to citizens of one or more War Era countries (autocompletes)

  • /verify-config add-country-role, assign an extra role per country, for embassies or multi-country servers

  • /verify-config post-welcome, drop the welcome message with the Verify button into the current channel

Citizenship is read from the War Era API on every verify, so people who change countries can re-verify and get the new role.

What it's useful for

  • Country Discords that want to skip the "screenshot please" dance

  • Factions and parties that want to gate channels on actual game accounts

  • Trading guilds that want to keep impersonators out

  • Embassy servers that want both @Verified and @CountryName roles

Adding it to your server

Install the bot

After install, drag the bot's role above any role you want it to assign in Server Settings, Roles. Then run /verify-config set-verified-role and /verify-config post-welcome and you're done.

Caveats

The bot is brand new. If you hit something weird, open an issue or comment on this article and I'll look at it.

It's open source (MIT) and self-hostable on Cloudflare's free tier if you'd rather run your own copy. Otherwise the install link above just works.

Simple Discord verification bot | War Era