Skip to content
This repository has been archived by the owner on Aug 14, 2020. It is now read-only.

AugustArchive/eris-commando

Repository files navigation

eris-commando

⚙️ | Lightweight command framework for the Eris library

Documentation | NPM

Example Bot

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();

Features

  • 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

Bots that use eris-commando

If you are using the library, submit a Pull Request!

  • Bot#0000 ~ This can be you!

Installation

Normal

$ npm i eris-commando
# OR
$ yarn add eris-commando

Cutting Edge Branch

⚠️ 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