Auth is a Discord Bot to verify user, giving server owner the ability to pull back members in case of deletetion or forgot login.
1. Create a bot in Discord Developer Portal
Copy TOKEN, CLIENT ID and CLIENT SECRET (Bot Tab, OAuth2 Tab)
Caution
Please keep the TOKEN and CLIENT SECRET personally, DO NOT share to the others.
Tip
The URL is formed by (http/https)://(domain)/api/auth/discord/redirect
Tick these boxes in SCOPES:
- bot
- applications.commands
Tick these boxes in BOT PERMISSIONS:
- Manage Server
- Manage Roles
- Manage Channels
- Create Instant Invite
- Read Messages/View Channels
- Send Messages
- Manage Messages
- Read Message History
Important
Please make sure your bot has enabled Intents and Permissions mentioned above, or else some functions might not work
Then, use the link at the bottom to invite your bot to Servers.
Create a Mongo Database
Go to Overview > Data Services > Connect > Drivers.
Copy the code in Step 3
git clone https://github.com/night0721/auth-bot.git
cd auth-bot
npm install
Replace XXX with the value you have copied in (1, 2, 5)
TOKEN=XXX
CLIENT_ID=XXX
CLIENT_SECRET=XXX
MONGO=mongodb+srv://XXX
CALLBACK_URL=http://XXX.XXX/api/auth/discord/redirect
PORT=XXX
api=https://api.night0721.xyz
npm run dev
or click Start button for Replit user
Note
Try running /setup command in your server's verify channel, please remember to keep the code sent by your bot for pulling members.
Join our Discord Server for update's news!
If you need support, you can join the Discord Server
This project is licensed under the GNU Public License v3.0. See LICENSE for more information.
If you have any ideas for improvements or new features, please feel free to fork the project and create a pull request or open an issue. All contributions are welcome, including translations, documentation, and code.