Official Templates for build-discord-app – A modern CLI to scaffold production-ready Discord bots.
This repository hosts the official templates used by the build-discord-app CLI tool – a scaffolding utility for building production-ready bots using Discord.js (v14+).
When you run:
npx build-discord-appThis repo powers the templates used to scaffold your new bot project.
Each folder in this repository represents a distinct project template, categorized by language:
build-discord-app-templates/
├── js/ # JavaScript templates
├── ts/ # TypeScript templates (coming soon)
├── py/ # Python templates (coming soon)
└── README.md # This file
A clean, production-ready JavaScript template with:
- Slash command support
- Dynamic command & event registration
.env-based config loading- Built-in ESLint support
- Clear, scalable folder structure
This is the default template used when no language or template is explicitly specified.
This repo is consumed by degit inside the build-discord-app CLI.
- No Git history is cloned
- Only the raw files from the template folder (e.g.,
js/) are copied into your new project directory
Want to contribute a new template? Awesome! Here's how:
- Create a new folder like
ts/,py/, etc. - Follow the structure and conventions used in
js/ - Make sure it includes at least a working
index.js(or relevant entry point) and aREADME.md - Open a Pull Request with a clear description and use case
These templates are designed to work out-of-the-box with:
build-discord-app– The CLI tool that uses these templatesDiscord.js– Core library for Discord botsdotenv– For secure environment variable handlingESLint– For JavaScript code quality and consistency
MIT © 2025 Dipanshu Sahu
Use freely, fork openly, and contribute improvements!
PRs and issues are always welcome ❤️
- Suggest new templates
- Report bugs
- Improve structure or configuration
Use the CLI:
npx build-discord-appAnd let this repo handle the rest.
Happy building!