A Discord bot that verifies user membership in required servers using OAuth2.
GPL-3.0 License
ServerGuardBot is a Discord bot designed to verify that users are present on one or more required servers using OAuth2 authorization. It ensures users meet the necessary server membership requirements before granting access.
Create a Discord Application:
Get Your Bot Token:
.env
file.Configure OAuth2 Settings:
identify
and guilds
.http://localhost:3000/callback
).Invite the Bot to Your Server:
bot
scope and choose the permissions your bot needs.Clone the repository:
git clone https://github.com/untanukii/serverguardbot.git
Navigate to the project directory:
cd serverguardbot
Install dependencies:
npm install
Configure environment variables:
A .env.example
file is provided. Rename it to .env
and update with your configuration:
DISCORD_TOKEN="secret discord bot token"
CLIENT_ID="your client id"
CLIENT_SECRET="your client secret"
Start the bot:
npm start
config.js
: Make sure to set the correct OAuth2 settings, including redirect URIs, scopes, and server addresses.git checkout -b feature/YourFeature
).git commit -am 'Add new feature'
).git push origin feature/YourFeature
).This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.
If you find this project useful, please consider giving it a ⭐ on GitHub. Your support helps keep the project active and encourages further development.
For support or questions, please contact me on Discord @untanukii or Twitter.