{"id":14983335,"url":"https://github.com/burakys/bot-template","last_synced_at":"2025-08-06T15:10:58.404Z","repository":{"id":49409794,"uuid":"516953213","full_name":"BurakYs/bot-template","owner":"BurakYs","description":"Discord.js V14 TypeScript bot template with multi-language support","archived":false,"fork":false,"pushed_at":"2025-07-27T18:33:51.000Z","size":361,"stargazers_count":10,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-02T12:10:51.555Z","etag":null,"topics":["bot","bot-template","discord","discord-bot","djs","multi-language","typescript"],"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/BurakYs.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},"funding":{"buy_me_a_coffee":"buraky"}},"created_at":"2022-07-23T04:03:08.000Z","updated_at":"2025-07-27T18:33:55.000Z","dependencies_parsed_at":"2022-09-10T11:31:55.271Z","dependency_job_id":"d62a0b8b-b22b-42c1-a659-4fadb28b031f","html_url":"https://github.com/BurakYs/bot-template","commit_stats":{"total_commits":104,"total_committers":2,"mean_commits":52.0,"dds":"0.019230769230769273","last_synced_commit":"d674a3e1f7c3e9d056f9b2790a512a0461bd873b"},"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/BurakYs/bot-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BurakYs%2Fbot-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BurakYs%2Fbot-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BurakYs%2Fbot-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BurakYs%2Fbot-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BurakYs","download_url":"https://codeload.github.com/BurakYs/bot-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BurakYs%2Fbot-template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269101500,"owners_count":24359962,"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","status":"online","status_checked_at":"2025-08-06T02:00:09.910Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","bot-template","discord","discord-bot","djs","multi-language","typescript"],"created_at":"2024-09-24T14:07:04.881Z","updated_at":"2025-08-06T15:10:58.396Z","avatar_url":"https://github.com/BurakYs.png","language":"TypeScript","funding_links":["https://buymeacoffee.com/buraky"],"categories":[],"sub_categories":[],"readme":"# 🤖 Discord Bot Template\n\nA TypeScript template for creating Discord bots with discord.js\n\n## 📦 Setup\n\n1. Clone the repo and install dependencies:\n    ```sh\n    git clone https://github.com/BurakYs/bot-template.git\n    cd bot-template\n    pnpm install\n    cp .env.template .env\n    ```\n\n2. Add your bot token to the `.env` file\n3. Register slash commands:\n    ```sh\n    pnpm register-commands\n    ```\n4. Start the bot:\n    ```sh\n    pnpm start\n    ```\n\n## ✨ Features\n\n### 🌐 Localization\n\n- Add new languages by:\n    - Creating a JSON file in `src/localizations`\n    - Updating the `supportedLanguages` array in `src/config.ts`\n- Command names/descriptions are in `src/localizations/commandData`\n\n### ⚙️ Command Handler\n\n- Organize commands in subfolders under `src/commands`\n- See [`types/index.d.ts`](src/types/index.d.ts#L19-L31) for config structure\n- Example of a subcommand-specific config:\n    ```ts\n    {\n      config: {\n        someOtherConfig: true,\n        premiumOnly: {\n          '*': false, // Default\n          'subcommandName': true, // Only for this subcommand\n          'groupName subcommandName': true, // For group subcommands\n        }\n      }\n    }\n    ```\n\n### 🛠 Utility Functions\n\n- [`interaction.success()`](src/types/discordjs.d.ts#L10-L12) - Sends a success message\n- [`interaction.error()`](src/types/discordjs.d.ts#L14-L16) - Sends an error message\n- [`interaction.translate()`](src/types/discordjs.d.ts#L8) - Translates a key using the current language\n\n## 📝 License\n\nThis project is licensed under the [MIT License](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fburakys%2Fbot-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fburakys%2Fbot-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fburakys%2Fbot-template/lists"}