1.0.5 • Published 4 years ago
create-dc-bot v1.0.5
Create-dc-bot
A command to start projects for discord bots with discord.js
Instalation
npm install -g create-dc-botUsage
create-dc-bot [name] [options]Options
[name]The name of the project--prefix <prefix>The default prefix for the commands--template <name>The template to create the project, the possibles values aretypescript,javacript,jsorts, the default isjavacript--package-manager <name>The package manager to install the dependencies, the possibles values arenpmoryarn--skip-gitWith this flag you can skip the initialization of the git project--skip-installaionWith this flag you can skip the installation of dependendencies
Project structure
These are the project structures of both templates.
Note the file .gitignore wont be generated if --skip-git is used.
TypeScript
.
│───.env
│───.gitignore
│───package.json
│───tsconfig.json
├───@types
│ └───Command.d.ts
│
└───src
│───index.ts
│
├───commands
│ ├───help.ts
│ └───ping.ts
│
└───utils
└───getPrefix.tsJavaScript
.
├───.env
├───.gitignore
├───index.js
├───package.json
│
├───commands
│ ├───help.js
│ └───ping.js
│
└───utils
└───getPrefix.js