1.0.5 • Published 3 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-bot
Usage
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
,js
orts
, the default isjavacript
--package-manager <name>
The package manager to install the dependencies, the possibles values arenpm
oryarn
--skip-git
With this flag you can skip the initialization of the git project--skip-installaion
With 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.ts
JavaScript
.
├───.env
├───.gitignore
├───index.js
├───package.json
│
├───commands
│ ├───help.js
│ └───ping.js
│
└───utils
└───getPrefix.js