create-discordjs-nextgen
v1.0.2
Published
Scaffold a Discord bot powered by discordjs-nextgen
Maintainers
Readme
create-discordjs-nextgen
CLI generator for discordjs-nextgen.
Usage
npx create-discordjs-nextgen my-botThe CLI asks for:
- Language:
JavaScriptorTypeScript - Plugins:
Voice,JSX,Permsy,Cache,Database - Template:
Starter Kit,Basic,Advanced
Templates
Basic
Creates the smallest possible bot:
- entry file
.envpackage.json
Starter Kit
Creates a practical starter project based on the examples:
commands/prefixcommands/slashcommands/hybridevents
Advanced
Creates a fuller example structure:
commandseventsbuttonsmodalsselectsconfigpluginsmiddleware
Plugins
Voice Support
- Adds
discordjs-nextgen-voice - Injects
VoicePlugininto your bot - Creates example voice command
JSX Support
- Adds
discordjs-nextgen-jsx - Injects
JSXPlugininto your bot - Creates example JSX component command
- Configures
jsconfig.jsonortsconfig.jsonfor JSX
Permsy (Permission System)
- Adds
permsyandnextgen-permsy-adapter - Global automatic permission checking for all prefix commands
- Creates
config/permsy.config.jswith permission rules - No code needed in commands - fully automatic
- Creates example admin command (Advanced/Basic templates)
Cache
- Simple:
MemoryAdapterfor in-memory caching - Redis:
RedisAdapterwithioredisfor production - Creates example money command (Advanced template)
Database
- SQLite:
better-sqlite3for local development - MySQL:
mysql2for production - MongoDB:
mongoosefor 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-nextgenAPI - Permsy uses MODE 1: Global Auto-Check - single line setup, zero code in commands
