Package Exports
- build-discord-app
- build-discord-app/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (build-discord-app) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
build-discord-app
The fastest way to create production-ready Discord bots
Interactive prompts • GitHub-powered templates • Smart conflict resolution • Auto-configured
Installation • Usage • Features • Tech Stack • Contributing
What is build-discord-app?
build-discord-app is a modern CLI tool that scaffolds production-ready Discord bot applications in seconds. It leverages GitHub-hosted templates and provides an intuitive setup experience with intelligent conflict resolution and automatic project configuration.
Built with ❤️ during my 100 Days of Code
This tool was created by Dipanshu Sahu as part of #100DaysOfCode journey to make Discord bot development easier and faster for everyone.
Why choose this CLI?
- Lightning Fast: Get a fully configured Discord bot project in under 30 seconds
- Interactive Experience: Beautiful CLI prompts powered by @clack/prompts
- Smart Templating: Templates fetched directly from GitHub using degit
- Conflict Resolution: Intelligent handling of existing files and directories
- Production Ready: Generated projects follow Discord.js best practices
- Auto-Configuration: Automatically sets up package.json with your details
Tech Stack
This CLI is built using the following technologies:
- Node.js - Runtime environment
- JavaScript (ESM) - Modern module system and syntax
- @clack/prompts - For beautiful and interactive terminal prompts
- degit - For fetching templates from GitHub
- fs-extra - Extra filesystem utilities
- picocolors - Minimal terminal styling
Installation
Quick Start (Recommended)
npx build-discord-appAlternative Methods
# Global installation
npm install -g build-discord-app
build-discord-appPrerequisites
- Node.js 16+ (v18+ recommended for optimal compatibility)
- npm or yarn package manager
- Git (for template fetching)
Verify Installation
build-discord-app --versionQuick Start
Create a New Bot Project
npx build-discord-appFollow the interactive prompts.
Create in Current Directory
npx build-discord-app .Skip All Prompts
npx build-discord-app my-bot -- --yesNote: When using npx, add -- before flags to pass them through.
Usage
Basic Syntax
build-discord-app [project-name] [options]Examples
build-discord-app
build-discord-app my-bot
build-discord-app .
build-discord-app my-bot --yes
build-discord-app my-bot --pkgname my-pkg --lang js --yesFeatures
- Interactive CLI with smart prompts
- GitHub template fetching using
degit - Auto config of project settings
- ESLint and Prettier support out of the box
- Safe directory and file handling
- Easily extendable and contributor-friendly
Templates
Templates are hosted in the build-discord-app-templates repository.
Each template includes:
- Slash command setup
- Event handler boilerplate
- .env example file
- Best practices structure
Troubleshooting
- Use Node 16+
- Ensure Git is installed
- Try
npx build-discord-app@latestif facing cache issues
License
MIT © 2025 Dipanshu Sahu
Made with ❤️ for the Discord developer community
⭐ Star this project if you find it helpful!