1.1.1 • Published 3 years ago

djs-cli v1.1.1

Weekly downloads
6
License
Apache License 2....
Repository
github
Last release
3 years ago

Installation

Use the node package manager npm to install and run djs.

npm i -g djs-cli

Usage

Create a new bot:

To create a new bot directory run :

djs new -n <name>

Use the -c flag to include premade bot commands:

djs new -n <name> -c

All bots created with this package include a help command, while if you choose to include premade moderation commands as well, prebuilt kick and ban commands will be automatically programmed into your bot. In your bot's directory you will find a .env file where you'll need to write the bot token provided by discord.

All bots are saved in a folder called djsBots in your system's homepath.

Add a command to an existing bot:

This works only in directories created with the djs cli.

To add a new command to your bot, in you bot's directory run:

djs generate (or just 'g') -n <name>

Use the -m flag to mark it as a moderation command:

djs generate -n <name> -m

Commands added this way will be automatically saved either in your bot's command directory, if it isn't a moderation command, or in the commands/moderationCommands directory.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

Apache License 2.0

1.1.1

3 years ago

1.1.0

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

1.0.0

5 years ago