@baldybdev/create-djs-bot
v14.1.1
Published
The easiest way to get started with a Discord.js v14 bot is by using `@baldybdev/create-djs-bot`. This CLI tool enables you to quickly scaffold a new Discord.js application, with everything set up for you. You can create a new bot project interactively or
Readme
Create DJS Bot
The easiest way to get started with a Discord.js v14 bot is by using @baldybdev/create-djs-bot. This CLI tool enables you to quickly scaffold a new Discord.js application, with everything set up for you. You can create a new bot project interactively or non-interactively with command line arguments.
Interactive
You can create a new project interactively by running:
npx @baldybdev/create-djs-bot@latestYou will be asked for:
- The name of your bot folder
- Your Discord bot token (optional)
- Your Discord bot client ID (optional)
- The package manager to use (npm, yarn, or pnpm)
Example prompt:
? Bot folder name: my-djs-bot
? Bot token (optional, you can fill it in later):
? Bot client ID (optional, you can fill it in later):
? Which package manager do you want to use? (Use arrow keys)
❯ npm
yarn
pnpmNon-interactive
You can also pass command line arguments to set up a new project
non-interactively. See npx @baldybdev/create-djs-bot@latest --help
See all options with:
Usage: npx @baldybdev/create-djs-bot [folder|.] [options]
Options:
--use-npm Use npm as package manager
--use-yarn Use yarn as package manager
--use-pnpm Use pnpm as package manager
--token <token> Provide your Discord bot token
--clientid <id> Provide your Discord bot client ID
-h, --help Show this help message
Examples:
npx @baldybdev/create-djs-bot my-bot
npx @baldybdev/create-djs-bot . --use-yarn --token YOUR_TOKEN --clientid YOUR_ID
npx @baldybdev/create-djs-bot --use-pnpm