{"id":24263057,"url":"https://github.com/hoonsubin/discord-bot-starter","last_synced_at":"2026-04-24T12:33:21.014Z","repository":{"id":40707097,"uuid":"324905535","full_name":"hoonsubin/discord-bot-starter","owner":"hoonsubin","description":"simple discord bot starter project using Discord.js and TypeScript","archived":false,"fork":false,"pushed_at":"2023-03-05T18:24:35.000Z","size":943,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-31T11:37:28.240Z","etag":null,"topics":["automation","bot","discord","webhook"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hoonsubin.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,"zenodo":null}},"created_at":"2020-12-28T03:47:20.000Z","updated_at":"2023-01-07T11:04:10.000Z","dependencies_parsed_at":"2025-06-07T02:04:27.774Z","dependency_job_id":"42319b58-54d0-4170-99a9-3285fd4365df","html_url":"https://github.com/hoonsubin/discord-bot-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/hoonsubin/discord-bot-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoonsubin%2Fdiscord-bot-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoonsubin%2Fdiscord-bot-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoonsubin%2Fdiscord-bot-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoonsubin%2Fdiscord-bot-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hoonsubin","download_url":"https://codeload.github.com/hoonsubin/discord-bot-starter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoonsubin%2Fdiscord-bot-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32224078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T10:26:35.452Z","status":"ssl_error","status_checked_at":"2026-04-24T10:25:27.643Z","response_time":64,"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":["automation","bot","discord","webhook"],"created_at":"2025-01-15T07:25:53.561Z","updated_at":"2026-04-24T12:33:20.999Z","avatar_url":"https://github.com/hoonsubin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discord Bot Starter Project\n\n## Introduction\n\nThis is a Discord bot starter project made with [Discord.js](https://discord.js.org/) and TypeScript.\nThis template project comes with a simple ping-pong slash command for a predefined guild (server).\n\n## Usage\n\n### Creating a Discord Application\n\nTo create an application that can be registered to a Discord server, you must create a Discord app via the [Discord Developer Portal](https://discord.com/developers/applications).\nOnce you created an app, you can access the client ID from the `General Information` setting and the bot token from the `Bot` setting (see image below).\n\n![client-id](https://user-images.githubusercontent.com/40356749/134047191-8ea55a38-f398-4021-b8dc-9f5aedbf7463.png)\n\n![bot-token](https://user-images.githubusercontent.com/40356749/134047251-93424ac3-bb8a-42a7-9dad-5a3855395abe.png)\n\n### Configuration\n\nTo start the bot server, you must provide the application credentials environmental variables.\nYou can do this by creating a `.env` file with the following variables.\n\n```env\n# Bot user app token\nDISCORD_APP_TOKEN=\u003cbot token\u003e\n# Bot user client ID\nDISCORD_APP_CLIENT_ID=\u003cbot client\u003e\n# Server ID for the bot to be installed\nDISCORD_GUILD_ID=\u003cguild id\u003e\n```\n\nThe `DISCORD_GUILD_ID` refers to the Discord server ID (or guild ID) that the bot will listen to.\nYou can configure the OAuth2 redirect URL to read and store the guild ID from a remote database when the user add the application to their server for public distribution.\n\n`src/config/appConfig.json` contains the bot permission, scope, and slash commands.\nThe values must reflect the ones in the Discord Developer Portal app settings.\n\n### Scripts\n\n```bash\n# install all the dependencies\nyarn\n\n# starts the server app in node.js environment\nyarn start\n# or you can use `yarn serve`\n\n# starts a development server with ts-node\nyarn dev\n\n# transpile the project for production\nyarn build\n```\n\n### Quick Start\n\nAfter running `yarn dev`, open \u003chttp://localhost:8080/install\u003e to install the application to your Discord server.\n\nGo to a Discord channel that the bot has access to and type `/ping`.\n\n![ping-command](https://user-images.githubusercontent.com/40356749/134050635-43de75ca-24ae-442c-8e9d-9aa75137e09f.png)\n\n## Further Readings\n\nFor more information, please refer to the official Discord developer portal or the Discord.js documentation.\n\n- \u003chttps://discord.com/developers/docs/intro\u003e\n- \u003chttps://discord.js.org/#/docs/main/stable/general/welcome\u003e\n- \u003chttps://discordjs.guide/#before-you-begin\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoonsubin%2Fdiscord-bot-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoonsubin%2Fdiscord-bot-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoonsubin%2Fdiscord-bot-starter/lists"}