CLI tool to scaffold Discord.js bot projects. Born out of my own need — I build a lot of Discord bots and got tired of setting up the same boilerplate every time.
npx djs-boilerplate my-bot- TypeScript or JavaScript
- Slash commands, prefix commands, or both
- Optional
src/folder structure - MongoDB integration (optional)
- Dynamic event and command handler
- Example helper system (e.g. ticket system)
my-bot/
├── commands/
│ ├── slash/
│ └── prefix/
├── events/
│ └── discord/
├── handlers/
│ ├── events.ts
│ ├── commands.ts
│ ├── helpers.ts
│ └── manager/
├── helpers/
├── models/
├── types/
├── utils/
└── index.ts
| Prompt | Choices |
|---|---|
| Package manager | npm, pnpm, bun |
| Language | TypeScript, JavaScript |
| Command style | Slash, Prefix, Both |
| src/ folder | Yes, No |
| Database | None, MongoDB |
cd my-bot
cp .env.example .env
# Add your bot token to .env
pnpm devTo register slash commands:
pnpm deployMIT