Skip to content
Discordjs-NextgenPublic

About

Launch an interactive wizard with a single command and create your template-based Discord bot project, powered by JavaScript or TypeScript, in seconds.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

create-discordjs-nextgen

CLI generator for discordjs-nextgen.

Usage

npx create-discordjs-nextgen my-bot

The CLI asks for:

  • Language: JavaScript or TypeScript
  • Plugins: Voice, JSX, Permsy, Cache, Database
  • Template: Starter Kit, Basic, Advanced

Templates

Basic

Creates the smallest possible bot:

  • entry file
  • .env
  • package.json

Starter Kit

Creates a practical starter project based on the examples:

  • commands/prefix
  • commands/slash
  • commands/hybrid
  • events

Advanced

Creates a fuller example structure:

  • commands
  • events
  • buttons
  • modals
  • selects
  • config
  • plugins
  • middleware

Plugins

Voice Support

  • Adds discordjs-nextgen-voice
  • Injects VoicePlugin into your bot
  • Creates example voice command

JSX Support

  • Adds discordjs-nextgen-jsx
  • Injects JSXPlugin into your bot
  • Creates example JSX component command
  • Configures jsconfig.json or tsconfig.json for JSX

Permsy (Permission System)

  • Adds permsy and nextgen-permsy-adapter
  • Global automatic permission checking for all prefix commands
  • Creates config/permsy.config.js with permission rules
  • No code needed in commands - fully automatic
  • Creates example admin command (Advanced/Basic templates)

Cache

  • Simple: MemoryAdapter for in-memory caching
  • Redis: RedisAdapter with ioredis for production
  • Creates example money command (Advanced template)

Database

  • SQLite: better-sqlite3 for local development
  • MySQL: mysql2 for production
  • MongoDB: mongoose for NoSQL
  • Creates models/ directory with example model
  • Creates example database command (Advanced template)

Notes

  • TypeScript adds ts-node, typescript, @types/node
  • Generated code follows the current discordjs-nextgen API
  • Permsy uses MODE 1: Global Auto-Check - single line setup, zero code in commands

About

Launch an interactive wizard with a single command and create your template-based Discord bot project, powered by JavaScript or TypeScript, in seconds.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages