A clean, scalable and production-ready Discord.js v14 starter template.
Built to help developers create modern Discord bots using a modular architecture and development best practices.
The Discord Bot Template is an open-source starter project created and maintained by The Server Boutique.
Instead of beginning every Discord bot from scratch, this template provides a clean project structure, organised folders and modern development practices that make new projects faster to build and easier to maintain.
Whether you're creating a small community bot or a large production application, this template provides a strong foundation.
- ๐ค Discord.js v14
- โก Slash command ready
- ๐ Modular folder structure
- ๐งฉ Event-driven architecture
- โ๏ธ Environment variable support
- ๐ Configuration system
- ๐ Logging support
- ๐ก๏ธ Best-practice project structure
- ๐ Beginner-friendly organisation
- โป๏ธ Easy to extend and customise
- ๐งช Built with testing in mind
- ๐ Fully documented
discord-bot-template/
โ
โโโ docs/
โโโ examples/
โโโ src/
โ โโโ commands/
โ โโโ config/
โ โโโ events/
โ โโโ handlers/
โ โโโ utils/
โ โโโ index.js
โ
โโโ tests/
โโโ .env.example
โโโ CHANGELOG.md
โโโ CODE_OF_CONDUCT.md
โโโ CONTRIBUTING.md
โโโ LICENSE
โโโ README.md
โโโ SECURITY.md
โโโ package.json
Clone the repository
git clone https://github.com/theserverboutique/discord-bot-template.gitInstall dependencies
npm installRename
.env.example
to
.env
Add your bot token and configuration values.
Start the bot
npm start| Component | Description |
|---|---|
| ๐ค Slash Commands | Ready for command development |
| โก Events | Modular event loading |
| โ๏ธ Configuration | Centralised configuration files |
| ๐ Handlers | Clean loading architecture |
| ๐งฐ Utilities | Shared helper functions |
| ๐ฑ Environment | Secure .env configuration |
| ๐ Logging | Structured console logging |
| ๐ก๏ธ Best Practices | Clean project organisation |
This template is designed to:
- Encourage clean project architecture.
- Reduce repetitive setup.
- Provide a scalable starting point.
- Follow modern Discord.js conventions.
- Help developers learn good project structure.
- Remain lightweight and easy to customise.
- Slash command handler
- Event handler
- Configuration system
- Environment variables
- Basic utilities
- Logging
- Documentation
- Permission framework
- Command cooldown system
- Database examples
- Component handler
- Error management improvements
- TypeScript edition
- CI workflows
- Expanded documentation
This repository is intended to become the recommended starting point for projects built by The Server Boutique.
Future releases will continue improving scalability, documentation and developer experience while remaining beginner friendly.
Contributions, bug reports and feature suggestions are always welcome.
Please read CONTRIBUTING.md before opening a pull request.
Released under the MIT License.
See LICENSE for full details.
The Server Boutique is a boutique Discord development studio specialising in:
- ๐ค Custom Discord bots
- ๐ก Discord server design
- โ๏ธ Community automation
- ๐ฆ Open-source developer tools
- ๐ Documentation and community resources
If this template helps you, consider supporting future development or exploring our services.
Ko-fi
https://ko-fi.com/theserverboutique
