{"id":24655271,"url":"https://github.com/night0721/auth-bot","last_synced_at":"2025-10-07T16:31:02.253Z","repository":{"id":159184620,"uuid":"625961892","full_name":"night0721/auth-bot","owner":"night0721","description":"Discord Bot to verify user, allowing server owner to recover server by pulling back members","archived":false,"fork":false,"pushed_at":"2024-05-01T08:12:27.000Z","size":59,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-01T09:29:08.907Z","etag":null,"topics":["auth","bot","discord","express"],"latest_commit_sha":null,"homepage":"https://git.night0721.xyz/auth-bot","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/night0721.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":"2023-04-10T13:54:24.000Z","updated_at":"2024-05-01T09:29:16.321Z","dependencies_parsed_at":"2024-05-01T09:29:12.159Z","dependency_job_id":"c3f3de56-a24c-4b94-ae31-a27bc7c16bc9","html_url":"https://github.com/night0721/auth-bot","commit_stats":null,"previous_names":["night0721/auth-bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/night0721%2Fauth-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/night0721%2Fauth-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/night0721%2Fauth-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/night0721%2Fauth-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/night0721","download_url":"https://codeload.github.com/night0721/auth-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235641255,"owners_count":19022643,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["auth","bot","discord","express"],"created_at":"2025-01-25T22:36:45.656Z","updated_at":"2025-10-07T16:31:02.248Z","avatar_url":"https://github.com/night0721.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Auth\n\nAuth is a Discord Bot to verify user, giving server owner the ability to pull back members in case of deletetion or forgot login.\n\n# Getting Start\n\n### 1. Create a bot in [Discord Developer Portal](https://discord.com/developers/applications)\nCopy TOKEN, CLIENT ID and CLIENT SECRET (Bot Tab, OAuth2 Tab)\\\n![Discord Token](https://r2.e-z.host/3c62bb3a-a8a9-43f6-afd6-553646f51dc4/jyu31kgp.png)\n![Discord Client](https://r2.e-z.host/3c62bb3a-a8a9-43f6-afd6-553646f51dc4/ra8aqbp3.png)\n\n\u003e [!CAUTION]\n\u003e Please keep the TOKEN and CLIENT SECRET personally, **DO NOT** share to the others.\n### 2. Paste your URL to Redirects (OAuth2 Tab)\n\u003e [!TIP]\n\u003e The URL is formed by (http/https)://(domain)/api/auth/discord/redirect\n\n![Discord OAuth2 Redirect](https://r2.e-z.host/3c62bb3a-a8a9-43f6-afd6-553646f51dc4/wgpvqcmv.png)\n### 3. Enable Intents\n![Discord Intents](https://r2.e-z.host/3c62bb3a-a8a9-43f6-afd6-553646f51dc4/umxiwuxl.png)\n### 4. Generate Bot Invite URL (OAuth2 Tab)\nTick these boxes in SCOPES:\n- bot\n- applications.commands\n\nTick these boxes in BOT PERMISSIONS:\n- Manage Server\n- Manage Roles\n- Manage Channels\n- Create Instant Invite\n- Read Messages/View Channels\n- Send Messages\n- Manage Messages\n- Read Message History\n\n\u003e [!IMPORTANT]\n\u003e Please make sure your bot has enabled Intents and Permissions mentioned above, or else some functions might not work\n\nThen, use the link at the bottom to invite your bot to Servers.\n### 5. Setting up database\nCreate a [Mongo Database](https://mongodb.com)\\\nGo to Overview \u003e Data Services \u003e Connect \u003e Drivers.\\\nCopy the code in Step 3\\\n![Mongo](https://r2.e-z.host/3c62bb3a-a8a9-43f6-afd6-553646f51dc4/sowcg1ll.png)\n### 6. Choose the host you are using\n- [Replit](#Replit)\n- [Other Host](#Other-Host)\n\n## Replit\n### 7. Create a new project by importing from github\n![Replit Import](https://r2.e-z.host/3c62bb3a-a8a9-43f6-afd6-553646f51dc4/xobwnpi2.png)\n### 8. Paste the information you have copied in (1, 2, 5) to Secrets\n![Replit Secret](https://r2.e-z.host/3c62bb3a-a8a9-43f6-afd6-553646f51dc4/fsbokqx9.png)\n\n## Other Host\n### 7. Clone the repository and install the dependencies\n```cmd\ngit clone https://github.com/night0721/auth-bot.git\ncd auth-bot\nnpm install\n```\n### 8. Create a .env file and paste the code below\nReplace XXX with the value you have copied in (1, 2, 5)\n```Dotenv\nTOKEN=XXX\nCLIENT_ID=XXX\nCLIENT_SECRET=XXX\nMONGO=mongodb+srv://XXX\nCALLBACK_URL=http://XXX.XXX/api/auth/discord/redirect\nPORT=XXX\napi=https://api.night0721.xyz\n```\n![Dotenv File](https://r2.e-z.host/3c62bb3a-a8a9-43f6-afd6-553646f51dc4/3zfp61oy.png)\n\n### 9. Run the server, and now enjoy!\n```cmd\nnpm run dev\n```\nor click **Start** button for Replit user\n\n\u003e [!NOTE]\n\u003e Try running **/setup** command in your server's verify channel, please remember to keep the code sent by your bot for pulling members.\n\nJoin our Discord Server for update's news!\n\n## Support\n\nIf you need support, you can join the [Discord Server](https://discord.gg/SbQHChmGcp)\n\n## License\n\nThis project is licensed under the GNU Public License v3.0. See [LICENSE](https://github.com/night0721/Auth/blob/master/LICENSE) for more information.\n\n## Contribution\n\nIf 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.\nAll contributions are welcome, including translations, documentation, and code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnight0721%2Fauth-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnight0721%2Fauth-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnight0721%2Fauth-bot/lists"}