{"id":15632633,"url":"https://github.com/jamiew/discordjs-bot-template","last_synced_at":"2026-05-05T21:37:26.605Z","repository":{"id":243874632,"uuid":"637427709","full_name":"jamiew/discordjs-bot-template","owner":"jamiew","description":"a simple discordjs + typescript bot template, since I couldn't find any others with just those","archived":false,"fork":false,"pushed_at":"2023-05-07T14:25:38.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-11T15:51:59.908Z","etag":null,"topics":["bot","bots","discord","discord-bot","discord-js"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jamiew.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-05-07T14:25:34.000Z","updated_at":"2024-05-23T20:00:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"545ad724-2673-4473-a8bc-897bcb2ae57c","html_url":"https://github.com/jamiew/discordjs-bot-template","commit_stats":null,"previous_names":["jamiew/discordjs-bot-template"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jamiew/discordjs-bot-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiew%2Fdiscordjs-bot-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiew%2Fdiscordjs-bot-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiew%2Fdiscordjs-bot-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiew%2Fdiscordjs-bot-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamiew","download_url":"https://codeload.github.com/jamiew/discordjs-bot-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiew%2Fdiscordjs-bot-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32669433,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"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":["bot","bots","discord","discord-bot","discord-js"],"created_at":"2024-10-03T10:44:45.754Z","updated_at":"2026-05-05T21:37:26.568Z","avatar_url":"https://github.com/jamiew.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# generic discord.js bot\n\nBuilt by following along w/ the [Discord.js bot guide](https://discordjs.guide/)\n\nI assumed they had a repo with a complete example but couldn't find it. The closest official-ish things I found, which are both fully setup \u0026 Typescript'up up:\n\n- discord.js's [discord-utils-bot](https://github.com/discordjs/discord-utils-bot)\n- discord.js's [discord-toolkit-bot](https://github.com/discordjs/discord-toolkit-bot)\n\nThis one is just vanilla javascript. Simplest thing that works.\n\n## Setup\n\nRegister a bot in the [Discord developer portal](https://discord.com/developers/applications) (or re-use grapher2):\n\nGo the \"Bot\" tab in your new Discord application and turn it on. Press \"Reset Token\" and copy that down.\n\nCopy `.env.sample` to `.env` and set the appropriate credentials\n\nIt's a good idea to set the DISCORD_GUILD_ID to a test server, where you can go crazy. Global commands are more restricted. To get the ID of a given server, right-click it in the Discord server list and select \"Copy ID\"\n\nInstall the bot using a correctly-setup Oauth2 permission link (see above). Generally requires client ID (aka app ID) and a permission scope (generally just `applications.commands`)\n\nExample install URL - substitute your `client_id`:\n\n\u003chttps://discord.com/api/oauth2/authorize?client_id=xxxxxxxxxxxxxxxxxxx\u0026permissions=0\u0026scope=bot%20applications.commands\u003e\n\nTODO\n\n- how to setup generic message handling, not just slash commands. is it as easy as turning on \"message content\" intent in global bot dev settings? I always forget\n- add screenshots because, like above, I completely forget how to do this every time I need to do it\n\n## Running\n\nRun in devmode, reloading on every code change:\n\n```sh\npnpm dev\n```\n\nOr run without reloading, and use `/update commandName` to refresh code for a specific command:\n\n```sh\npnpm start\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamiew%2Fdiscordjs-bot-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamiew%2Fdiscordjs-bot-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamiew%2Fdiscordjs-bot-template/lists"}