Verifies Club Membership Automatically
This Discord Verification Bot is an open-source project designed to automatically verify student club members using data stored in a connected database. It streamlines the onboarding process by checking membership details such as Full Name and Student ID securely and efficiently via discord's modals.
Note: This setup assumes that you have already either installed docker and/or have knowledge with javascript. To contribute, you need to create your own Discord Bot profile and test it yourself in another server.
-
Open Discord Developers and click on "Get Started"
-
Create a New Application, with any name you like
-
Navigate to
Boton the left sidebar- Note down the
Token, the code of your bot will require it. - Enable the Intent
Message Content- This is required by Discord to ensure popular discord bots do not scrape server message contents without permission.
- Note down the
-
Generate a Discord Bot URL:
- Navigate to
OAuth2on the left sidebar - Scroll down to
OAuth2 URL Generator - Under Scopes, select
bot - Scroll down to
Bot Permissions - Select permissions, or later override it in the invite link.
- Verification Bot's Permission integer is
139855219776.
- Copy the Generated URL, and invite your bot to your Discord server.
OR
https://discord.com/oauth2/authorize?client_id=DISCORD_BOT_ID&permissions=139855219776&integration_type=0&scope=bot
- Navigate to
Javascript with Nodejs
- Navigate to directory on your machine
git clone https://github.com/deakinSoftwareEngineeingClub/verification-bot
(Inside of src/ directory do the following.)
4. Create .env file according to .env.example inside of src/ directory
- You can ask the committee (or Milad) for the environment variables on Discord.
- Run
npm installthennpm install @supabase/supabase-js discord.js - Run
node deploy-commands.jsto deploy/refresh commands - Run
node index.jsto run the bot. Then your done!
Or Use Docker
- Make sure Docker engine is running.
- On Windows, open Docker Desktop.
- On debian, run
sudo systemctl start dockerin terminal to start docker.
- Run the following commands inside of verification-bot/ directory
docker compose build
docker compose up -d
docker compose logs -f bot
- Follow DSEC Server Rules
- Follow Deakin Code of Conduct
- Follow Discord Terms of Services
- Do not test in Production
- Do not write malicious code (unless you have obtained permission for white hat hacking)
- Do not spam pull requests
- Do not add your own code formatter, affecting the whole files you edit
- SupaBase-js
npm install @supabase/supabase-js - Discord.js
npm install discord.js
- Helped with development advice and repository structure : [RythonDev] (https://github.com/liyunze-coding)