This bot provides email verification for the BITS Pilani Discord server, ensuring that only students with valid BITS Pilani email addresses can access certain channels.
- Email verification using BITS Pilani student email addresses
 - Discord slash command for initiating verification
 - Rate limiting to prevent abuse
 - Automatic role assignment upon successful verification
 - Docker support for easy deployment
 
- 
Clone the repository:
git clone https://github.com/bits-bsc-cs/discord-bot.git cd discord-bot - 
Create a
.envfile in the root directory with the following variables:DISCORD_TOKEN=your_discord_bot_token RESEND_API_KEY=your_resend_api_key - 
Install Docker and Docker Compose on your system.
 - 
Run the bot locally using Docker Compose:
docker-compose up --build - 
The bot should now be running and connected to Discord. You can test it by using the
/verifycommand in your Discord server. 
- Invite the bot to your Discord server and ensure it has the necessary permissions.
 - Users can start the verification process by using the 
/verifycommand. - The bot will prompt users to enter their BITS Pilani email address.
 - A verification code will be sent to the provided email.
 - Users must enter the verification code to complete the process.
 - Upon successful verification, users will be assigned the "Verified" role.
 
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.