Overview
The/verify command allows students to verify their identity by linking their Discord account with their university email address. This is a two-step process that requires both initiating the verification with an email and entering a verification code.
Subcommands
verify init
Request a verification code by providing your student email address.Your student email address. Must end with
@stud.hs-kempten.de.Localized names:- German:
email-adresse
Usage
Validation
The command validates that:- The email address ends with
@stud.hs-kempten.de - The email is not already associated with another Discord account
- The user is not already verified
Response
On success, you’ll receive an embed message notifying you that the verification email has been sent. Note that the mail server may be slow, so please be patient. If there’s an error sending the email, you’ll receive a detailed error message.Error Messages
- Invalid email: If the email doesn’t end with
@stud.hs-kempten.de - Already verified: If the email is already linked to another account
- Email send error: If there’s a problem sending the verification email
Implementation Details
verify code
Enter the verification code you received via email to complete the verification process.The verification code sent to your email address.
Usage
Validation
The command checks that:- You have previously initiated verification with
/verify init - The code matches the one that was sent to your email
- You are not already verified
Response
On successful verification:- You’ll receive a confirmation message
- Your Discord account will be linked to your email in the database
- You’ll automatically receive the “Verified” role
- The verification code will be removed from temporary storage
Error Messages
- Already verified: If you’ve already completed verification or if you haven’t initiated the verification process
- Invalid code: If the code doesn’t match the one sent to your email
Implementation Details
verified_users table and automatically receives the verified role.
Localization
This command supports multiple languages:| Language | Command Name | Init Subcommand | Description |
|---|---|---|---|
| English | /verify | init | Request a verification code by providing your student email address |
| German | /verifizieren | start | Fordere einen Verifizierungscode an, indem du deine Studierenden E-Mail Adresse angibst |
| Japanese | /verify | init | (Uses English as fallback) |
Permissions
- Guild Only: This command can only be used in a server, not in DMs
- No special permissions required for users to run this command
Database Schema
The verification process interacts with theverified_users table:
Example Flow
- User runs
/verify init email:student@stud.hs-kempten.de - Bot validates the email format
- Bot checks if email is already in use
- Bot generates a verification code and sends it via email
- User receives email with code
- User runs
/verify code code:ABC123 - Bot validates the code
- Bot adds user to database and assigns verified role
- User is now verified and has access to additional server features