npm install discordjs-cmds --save
👉 JSDOCS
Contents
Disclaimer
This project is currently in an early development phase, which means, that there could be some unidentified bugs. Also, there will be much more functions added and advanced later! Feel free to post issues or pull request if you noticed a bug or if you have improvement suggestions!
Usage
Implement the library, create your bot framework and create an instance of the CmdParser
const Client = const CmdParser = // Creating bot instanceconst bot = // Creating CmdParser Instanceconst cmd = bot "-" // Login the bot instance with your discord tokenbot
Now, create some methods for commands somewhere
{ msgchannel} { msgchannel} // ...
Then, you can register your commands like following
cmd
For permissions, you can register specific permission levels for specific roles
cmd
If you want to react on some events the CmdParser event manager fires, use it like following
cmd
Default Commands
There are some default implemented commands:
help
Sends the user a list of commands via DM
help <invoke>
Get the help message of a registered command
Changelog
All changelogs (after version 0.3.0
) you can find in the CHANGELOG.md.
To-Do
- Add option + function to give guilds higher perm lvl
- Method to register bot host with max perm lvl
- Guild specific prefixes
- Custom command types
- Aliases
- Permissions
- Detailed help command