{"id":28788112,"url":"https://github.com/xjectro/typescript-discord-bot","last_synced_at":"2026-03-03T20:33:23.535Z","repository":{"id":252185282,"uuid":"839677240","full_name":"Xjectro/typescript-discord-bot","owner":"Xjectro","description":"A 🔥 TypeScript + discord.js template to kickstart your Discord bot project in no time! It includes MongoDB integration with Mongoose, command \u0026 event handlers, automatic slash command registration, and utility functions.","archived":false,"fork":false,"pushed_at":"2025-05-11T20:33:04.000Z","size":56,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-17T05:38:01.842Z","etag":null,"topics":["boilerplate","bot","bot-framework","bots","discord","discord-api","discord-bot","discord-bot-template","discord-js","discord-tool","discordapp","discordbot","discordjs","example","framework","shard","sharding","starter","template","typescript"],"latest_commit_sha":null,"homepage":"https://xjectro.com/","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/Xjectro.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":"2024-08-08T05:32:22.000Z","updated_at":"2025-06-05T12:15:49.000Z","dependencies_parsed_at":"2024-09-15T03:15:50.507Z","dependency_job_id":"f8acc176-4bfd-4c27-8c51-887961dadf0a","html_url":"https://github.com/Xjectro/typescript-discord-bot","commit_stats":null,"previous_names":["deverays/typescript-discord-bot-template","xjectro/typescript-discord-bot-template","xjectro/discord-bot","xjectro/typescript-discord-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Xjectro/typescript-discord-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xjectro%2Ftypescript-discord-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xjectro%2Ftypescript-discord-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xjectro%2Ftypescript-discord-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xjectro%2Ftypescript-discord-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Xjectro","download_url":"https://codeload.github.com/Xjectro/typescript-discord-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xjectro%2Ftypescript-discord-bot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260439480,"owners_count":23009294,"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":["boilerplate","bot","bot-framework","bots","discord","discord-api","discord-bot","discord-bot-template","discord-js","discord-tool","discordapp","discordbot","discordjs","example","framework","shard","sharding","starter","template","typescript"],"created_at":"2025-06-17T21:01:11.492Z","updated_at":"2025-10-27T02:04:33.464Z","avatar_url":"https://github.com/Xjectro.png","language":"TypeScript","readme":"# 🎉 Discord Bot Template 🚀\n\nA 🔥 **TypeScript** + **discord.js** template to kickstart your Discord bot project in no time! It includes MongoDB integration with Mongoose, command \u0026 event handlers, automatic slash command registration, and utility functions.\n\n## ✨ Features\n\n- ⚡️ Fast setup with TypeScript  \n- 📥 Automatic slash command registration (`registerCommands.ts`)  \n- 🔄 Robust event \u0026 command handlers  \n- 🗄️ MongoDB integration via Mongoose  \n- ⏱️ Cooldown mechanism for commands  \n- 🖼️ Dynamic image generation using `node-html-to-image`  \n\n## 🛠️ Requirements\n\n- Node.js v18 or higher  \n- Bun (optional) or Nodemon  \n- MongoDB connection URI  \n- Discord Bot Token  \n\n## 🚀 Installation\n\n```powershell\ngit clone https://github.com/\u003cusername\u003e/discord-bot-template.git\ncd discord-bot-template\n# Using npm\nnpm install\n# Or with Bun\nbun install\n```\n\n## 🔑 Environment Variables\n\nCreate a `.env` file in the project root:\n\n```env\nTOKEN=YOUR_DISCORD_BOT_TOKEN\nMONGODB_URI=YOUR_MONGODB_CONNECTION_STRING\n```\n\n## 📂 Project Structure\n\n```\n.\n├─ src  \n│  ├─ commands          # Slash command definitions  \n│  ├─ database  \n│  │  ├─ dbConnection.ts  \n│  │  └─ models         # Mongoose models  \n│  ├─ events            # Discord event handlers  \n│  ├─ handlers          # Custom event \u0026 command logic  \n│  ├─ types             # TypeScript type definitions  \n│  └─ utils             # Utility functions (e.g., cooldowns)  \n├─ templates            # HTML templates for image generation  \n├─ nodemon.json         # Nodemon config  \n├─ package.json  \n├─ tsconfig.json  \n└─ README.md  \n```\n\n## ⚙️ Usage\n\n\u003e **Register commands**  \n```powershell\nnpm run registerCommands\n```\n\n\u003e **Start development server**  \n```powershell\nnpm run dev\n```\n\n\u003e Or with Bun:  \n```powershell\nbun run dev\n```\n\n## 🤝 Contributing\n\n1. Fork the repository 🍴  \n2. Create a new branch (`git checkout -b feature/YourFeature`) 🌿  \n3. Commit your changes (`git commit -m \"Add some feature\"`) 📝  \n4. Push to the branch (`git push origin feature/YourFeature`) 🚀  \n5. Open a Pull Request 🎉\n\n## 📄 License\n\nThis project is licensed under the ISC License. 🚀\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxjectro%2Ftypescript-discord-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxjectro%2Ftypescript-discord-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxjectro%2Ftypescript-discord-bot/lists"}