{"id":15211415,"url":"https://github.com/untanukii/serverguardbot","last_synced_at":"2026-01-24T05:02:51.993Z","repository":{"id":253267535,"uuid":"842982191","full_name":"UnTanukii/serverguardbot","owner":"UnTanukii","description":"🔒 A Discord bot that verifies user membership in required servers using OAuth2","archived":false,"fork":false,"pushed_at":"2024-08-15T14:46:48.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-14T02:47:54.954Z","etag":null,"topics":["discord","discord-bot","discordjs","discordoauth2","discordsecurity","javascript","oauth2","security"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UnTanukii.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-15T14:24:21.000Z","updated_at":"2025-05-03T21:37:50.000Z","dependencies_parsed_at":"2024-08-15T16:56:38.527Z","dependency_job_id":null,"html_url":"https://github.com/UnTanukii/serverguardbot","commit_stats":null,"previous_names":["untanukii/serverguardbot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/UnTanukii/serverguardbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnTanukii%2Fserverguardbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnTanukii%2Fserverguardbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnTanukii%2Fserverguardbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnTanukii%2Fserverguardbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UnTanukii","download_url":"https://codeload.github.com/UnTanukii/serverguardbot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnTanukii%2Fserverguardbot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28712841,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T05:01:10.984Z","status":"ssl_error","status_checked_at":"2026-01-24T04:59:18.328Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["discord","discord-bot","discordjs","discordoauth2","discordsecurity","javascript","oauth2","security"],"created_at":"2024-09-28T08:41:08.363Z","updated_at":"2026-01-24T05:02:51.976Z","avatar_url":"https://github.com/UnTanukii.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ServerGuardBot\n\n**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.\n\n## Features\n\n- **OAuth2 Integration:** Verifies user presence in required servers as configured.\n- **Automated Access Management:** Grants server access upon successful OAuth2 authorization.\n\n## Getting Started\n\n### Prerequisites\n\n- [Node.js (v16 or higher)](https://nodejs.org/fr)\n\n### Creating Your Discord Bot\n\n1. **Create a Discord Application:**\n   - Go to the [Discord Developer Portal](https://discord.com/developers/applications).\n   - Click on \"New Application\" and give it a name.\n   - Go to the \"Bot\" tab and click \"Add Bot.\" Confirm by clicking \"Yes, do it!\"\n\n2. **Get Your Bot Token:**\n   - Under the \"Bot\" tab, you will see a \"Token\" section. Click \"Copy\" to save your token. You'll need this for your `.env` file.\n\n3. **Configure OAuth2 Settings:**\n   - Go to the \"OAuth2\" tab in your application.\n   - Under \"OAuth2 URL Generator,\" select the scopes `identify` and `guilds`.\n   - In the \"OAuth2 Redirects\" section, add the redirect URI where your bot will handle the OAuth2 response (e.g., `http://localhost:3000/callback`).\n\n4. **Invite the Bot to Your Server:**\n   - In the \"OAuth2\" tab, select the `bot` scope and choose the permissions your bot needs.\n   - Copy the generated OAuth2 URL and paste it into your browser to invite the bot to your server.\n\n### Installation\n\n1. **Clone the repository:**\n\n   ```bash\n   git clone https://github.com/untanukii/serverguardbot.git\n   ```\n\n2. **Navigate to the project directory:**\n\n   ```bash\n   cd serverguardbot\n   ```\n\n3. **Install dependencies:**\n\n   ```bash\n   npm install\n   ```\n\n4. **Configure environment variables:**\n\n   A `.env.example` file is provided. Rename it to `.env` and update with your configuration:\n\n   ```plaintext\n    DISCORD_TOKEN=\"secret discord bot token\"\n    CLIENT_ID=\"your client id\"\n    CLIENT_SECRET=\"your client secret\"\n   ```\n\n5. **Start the bot:**\n\n   ```bash\n   npm start\n   ```\n\n## Configuration\n\n- **Update `config.js`:** Make sure to set the correct OAuth2 settings, including redirect URIs, scopes, and server addresses.\n- **Redirect URI:** Ensure the redirect URI specified in the OAuth2 settings matches the one configured in your Discord Developer Portal.\n\n## Usage\n\n- **Authorize the Bot:** Use the OAuth2 URL to authorize the bot and ensure the user is a member of the required servers.\n- **Interact with the Bot:** The bot will manage server access based on your configuration.\n\n## Contributing\n\n1. Fork the repository.\n2. Create a new branch (`git checkout -b feature/YourFeature`).\n3. Commit your changes (`git commit -am 'Add new feature'`).\n4. Push to the branch (`git push origin feature/YourFeature`).\n5. Create a new Pull Request.\n\n## License\n\nThis project is licensed under the GNU General Public License v3.0. See the [LICENSE](LICENSE) file for details.\n\n## Support\n\nIf you find this project useful, please consider giving it a ⭐ on [GitHub](https://github.com/untanukii/serverguardbot). Your support helps keep the project active and encourages further development.\n\n## Contact\n\nFor support or questions, please contact me on Discord [@untanukii](https://dsc.gg/untanukii) or [Twitter](https://twitter.com/untanukii).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funtanukii%2Fserverguardbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funtanukii%2Fserverguardbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funtanukii%2Fserverguardbot/lists"}