KeyVerify: A Discord Bot for Secure License Verification

KeyVerify

Discord BotPythonAutomationAPISecurity

KeyVerify is a Discord bot that handles license verification for Payhip digital products. Users verify directly in your server — no external links, no DMs. Once verified, the bot assigns the configured role and stores the result. If a verified user leaves and rejoins, their role is automatically reapplied.

What it does

  • In-server verification — Users enter their license key through a modal directly in Discord.
  • Automatic role assignment — Roles are assigned on successful verification and reapplied on rejoin.
  • Product management — Register multiple products, each with its own role. Roles can be auto-created if none is specified.
  • License reset — Reset a key's usage count on Payhip for reactivations.
  • User revocation — Remove a user's access and disable their license records.
  • Verification logging — Log verification events to a channel of your choice.
  • Encrypted storage — License keys and product secrets are AES-encrypted before being stored.
  • Rate limiting — Cooldowns prevent spam and API abuse.
  • Persistent buttons — Verification buttons continue working after bot restarts without any manual setup.

Commands

CommandDescription
/start_verificationPost the verification button to a channel.
/add_productRegister a product with its Payhip secret and an optional role.
/remove_productRemove a product from the server.
/list_productsList all registered products and their roles.
/reset_keyReset the usage count of a license key on Payhip.
/set_lchannelSet the channel where verification events are logged.
/remove_userRevoke a user's access and remove their verification records.
/helpShow available commands and support info.

Security

  • All stored license keys and product secrets are AES-encrypted (Fernet).
  • Commands are restricted to server administrators.
  • Rate limiting is applied to all verification interactions.
  • Encryption keys can be rotated without losing access to existing data.

Project status

Actively maintained and deployed in production. Available as a hosted bot via the invite link above, or self-hosted from the GitHub repository.

View on GitHub

Support

Discord: Fayelicious_


Legal