{"id":26366752,"url":"https://github.com/stifskere/djsbottemplatets","last_synced_at":"2026-04-18T00:07:19.852Z","repository":{"id":184160947,"uuid":"671404503","full_name":"stifskere/DjsBotTemplateTS","owner":"stifskere","description":"Discord.JS boilerplate so you can use your time creating features instead of making a bot work.","archived":false,"fork":false,"pushed_at":"2024-04-12T13:06:07.000Z","size":49,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-16T04:33:58.532Z","etag":null,"topics":["bot","discord","discordjs","template"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/stifskere.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-07-27T08:38:44.000Z","updated_at":"2024-04-12T12:30:50.000Z","dependencies_parsed_at":"2024-04-12T13:09:33.108Z","dependency_job_id":null,"html_url":"https://github.com/stifskere/DjsBotTemplateTS","commit_stats":null,"previous_names":["stifskere/djsbottemplatets"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/stifskere/DjsBotTemplateTS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stifskere%2FDjsBotTemplateTS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stifskere%2FDjsBotTemplateTS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stifskere%2FDjsBotTemplateTS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stifskere%2FDjsBotTemplateTS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stifskere","download_url":"https://codeload.github.com/stifskere/DjsBotTemplateTS/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stifskere%2FDjsBotTemplateTS/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31950895,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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","discord","discordjs","template"],"created_at":"2025-03-16T20:46:13.593Z","updated_at":"2026-04-18T00:07:19.840Z","avatar_url":"https://github.com/stifskere.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discord.JS template for typescript\n\n\u003e [!warning]\n\u003e This repository is now **unmaintained**, I do not have the time nor I want to update this, `discord.js` already moved on and I chose not to use it since I now use rust alternatives to make discord bots.\n\u003e\n\u003e Feel free to use it if you want, but I don't promise any update.\n\nThis is a TypeScript bot template for Discord.JS,\nit contains the basic utilities such as command registering and interaction/event handing.\n\nYou may extend the content of this template to create your own customized bot.\n\n## Getting started\n\nTo get started, create a copy of the repository template, then you may clone the copy repository.\n\n![img.png](external/clone.png)\n\nthen you may clone it using the following command\n\n```bash\ngit clone https://github.com/$your_user_name/$your_repo_name\ncd $your_repo_name\n```\n\nand then open it with your favorite editor\n\n```bash\n# whether is vscode\ncode .\n# or webstorm\nwebstorm .\n```\n\nBefore touching any code, you should install all the dependencies for this bot.\n\n```bash\nnpm install\n```\n\nafter running this command you can see that a file named `.env` has been created, you may fill it now.\n\n```dotenv\n# you can get these values in https://discord.dev\n\nTOKEN=\"\" # your discord bot token should go here.\nAPPID=\"\" # your discord application id should go here.\n```\n\n**THIS FILE SHOULD NEVER BE PUSHED TO YOUR GITHUB REPOSITORY** thus it's added in the `.gitignore`.\n\n## Starting the bot\n\nnpm scripts are configured in this repository `package.json`, you may run the following.\n\n```bash\nnpm run start\n```\n\nif your `.env` file is correctly set, you should have a `/ping` command available.\n\n## Adding implementations\n\nImplementations in this template are really simple, and typescript should hint you to make them correctly.\n\nYou may create a file under `commands/**/*` to create a slash command,\nor a file under `events/**/*` to create an event handler.\n\nTo define what are you exporting, you may export one of the following objects,\notherwise the handler will ignore your export.\n\nInside `commands/**/*` you may place one of the following default exports\n\n```ts\nexport default new SlashCommand({\n    builder: new SlashCommandBuilder(),\n    \n    async handler(): Promise\u003cvoid\u003e {\n        \n    }\n});\n```\n\n```ts\nexport default new UserCommand({\n    builder: new ContextMenuCommandBuilder(),\n\n    async handler(): Promise\u003cvoid\u003e {\n\t\t\n    }\n});\n```\n\n```ts\nexport default new ButtonInteraction({\n    componentId: \"\",\n    \n    async handler(): Promise\u003cvoid\u003e {\n\t\t\n    }\n});\n```\n\n```ts\nexport default new SelectMenuInteraction({\n    componentId: \"\",\n    \n    async handler(): Promise\u003cvoid\u003e {\n\t\t\n    }\n})\n```\n\nTo access the executing client or the interaction, `this` is bound with the corresponding context for each interaction.\nFor example,\nyou may access the interaction using  `this.context` and you will have access to it's `reply()` method and more.\n\nInside the `events/**/*` you may place one of the following default exports\n\n```ts\nexport default new Event({\n    event: Events.ClientReady,\n    \n    async handler(): Promise\u003cvoid\u003e {\n\t\t\n    }\n});\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstifskere%2Fdjsbottemplatets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstifskere%2Fdjsbottemplatets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstifskere%2Fdjsbottemplatets/lists"}