This is still a work in progress.
Commando-Plus extends on Commando. Info snippet from Commando:
It is flexible, fully object-oriented, easy to use, and makes it trivial to create your own powerful commands. Additionally, it makes full use of ES2017's
async
/await
functionality for clear, concise code that is simple to write and easy to comprehend.
If you are looking for better support, and do not plan to use any of the features of Commando-Plus, please use Commando instead. This repository is mostly here to support my own Discord bots in order to share common used code between them without having to manually duplicate them in every repository.
- Easily extendable commands through third-party modules
- Command responses can handle reactions
- Limit commands to certain server channels (configurable through whitelisting commands)
- Background workers
- Supports caching with the Memory and Redis providers
- Supports database storage with the MongoDB provider
- Supports localization with the i18next provider (default locale is en-US)
- Supports an additional settings provider: YAML
Node 8.0 or higher is required.
If you are using Node 8.2 or lower, you might have to run node with the harmony flag.
Commando-Plus supports additional features that have peer dependencies that need to be installed separately.
Install Commando-Plus by running: npm install archomeda/discord.js-commando-plus --save
Create your own SettingsProvider, or use:
- SQLiteSettingsProvider:
npm install sqlite --save
- YAMLSettingsProvider:
npm install js-yaml --save
Create your own LocaleProvider, or use:
- I18nextLocaleProvider:
npm install i18next --save
Create your own CacheProvider, or use:
- MemoryCacheProvider:
npm install node-cache --save
- RedisCacheProvider:
npm install redis --save
When using the RedisCacheProvider, Redis 3.2 is required as an additional dependency.
Create your own StorageProvider, or use:
- MongoStorageProvider:
npm install mongoose --save
When using the MongoStorageProvider, MongoDB 3.4 is required as an additional dependency.