Skip to content

dipanshu447/build-discord-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Quick Start (Recommended)

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

About

The fastest way to create production-ready Discord bots with interactive CLI prompts and GitHub-powered templates

Resources

License

Stars

Watchers

Forks