⚙️ | Lightweight command framework for the Eris library
More examples can be located here.
import { CommandoClient, MongoDialect, LoggerPreset } from 'eris-commando';
import { sep } from 'path';
const bot = new CommandoClient({
token: '',
prefix: '!',
commands: `${process.cwd()}${sep}commands`,
events: `${process.cwd()}${sep}events`,
tasks: `${process.cwd()}${sep}tasks`,
monitors: `${process.cwd()}${sep}monitors`,
inhibitors: `${process.cwd()}${sep}inhibitors`
});
bot.use(new LoggerPreset());
bot.start();
- Tasks - Run any tasks in the background
- Monitors - Any monitors when a command is executed
- Inhibitors - Any boolean checks before a command is executed
- Presets - Plugin API to create any presets
If you are using the library, submit a Pull Request!
Bot#0000
~ This can be you!
$ npm i eris-commando
# OR
$ yarn add eris-commando
⚠️ You might want not to use it, it can break at anytime!
$ npm i github:eris-commando/eris-commando#edge
# OR
$ yarn add github:eris-commando/eris-commando#edge