Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email Verification Bot for BITS Pilani Discord Server #1

Merged
merged 30 commits into from
Oct 28, 2024
Merged

Conversation

sattwyk
Copy link
Member

@sattwyk sattwyk commented Oct 28, 2024

This PR introduces a new Discord bot for email verification on the BITS Pilani Discord server. The bot provides a secure and automated way to verify students using their BITS Pilani email addresses.

Key Features:

  • Email verification using BITS Pilani student email addresses
  • Discord slash command /verify for initiating the verification process
  • Rate limiting to prevent abuse
  • Automatic role assignment upon successful verification
  • Docker support for easy deployment and scalability
  • Health check endpoint for monitoring bot status

Implementation Details:

  • Uses Discord.py library for bot functionality
  • Integrates with Upstash Redis for rate limiting and temporary data storage
  • Utilizes Resend API for sending verification emails
  • Implements error handling and logging for improved reliability
  • Includes a Dockerfile and docker-compose.yaml for containerization

Testing:

  • The bot has been tested locally using Docker Compose
  • Verification process, rate limiting, and role assignment have been verified
  • Error scenarios have been simulated and handled appropriately

Deployment:

  • Terraform configuration is included for infrastructure provisioning
  • A deploy.sh script is provided for streamlined deployment
  • Set up CI/CD pipeline for automated testing and deployment

Please review the changes and provide feedback. Let me know if any modifications or additional information is required.

@sattwyk
Copy link
Member Author

sattwyk commented Oct 28, 2024

Godspeed!

@sattwyk sattwyk merged commit bb180ae into main Oct 28, 2024
1 check failed
@sattwyk
Copy link
Member Author

sattwyk commented Oct 28, 2024

will fix the ci later 🤕

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant