JSPM

build-discord-app

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q37358F
  • License MIT

A CLI tool to scaffold your own Discord bot project quickly

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

Discord Bot CLI Node.js JavaScript npm License

The fastest way to create production-ready Discord bots

Interactive prompts • GitHub-powered templates • Smart conflict resolution • Auto-configured

InstallationUsageFeaturesTech StackContributing


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

npx build-discord-app

Alternative Methods

# Global installation
npm install -g build-discord-app
build-discord-app

Prerequisites

  • Node.js 16+ (v18+ recommended for optimal compatibility)
  • npm or yarn package manager
  • Git (for template fetching)

Verify Installation

build-discord-app --version

Quick Start

Create a New Bot Project

npx build-discord-app

Follow the interactive prompts.

Create in Current Directory

npx build-discord-app .

Skip All Prompts

npx build-discord-app my-bot -- --yes

Note: 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 --yes

Features

  • 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@latest if facing cache issues

License

MIT © 2025 Dipanshu Sahu


Made with ❤️ for the Discord developer community

⭐ Star this project if you find it helpful!

Report BugRequest FeatureContribute