djs-cli
v1.1.1
Published
A cli to write discord bots
Downloads
2
Readme
djs
Djs, a cli to speed up discord bots development
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.