node package manager

mirai-bot-core

Mirai Bot Core

Discord server David GitHub license Code Climate npm

A powerful Discord bot core using Eris. At least NodeJS v6 Argon is REQUIRED

Documentation | Eris Docs | Mirai Bot Website | Support me on Patreon | Discord Server | Mirai Bot Combined Todo List

By using mirai-bot-core you agree to not ask any questions unless you have a basic understanding of installing programs, running node applications, and developing JavaScript applications.

mirai-bot-core supports advanced application monitoring with sentry.io using raven. For more information head over to the docs.

Installing

npm i -S mirai-bot-core
const Mirai = require('mirai-bot-core'),
      bot = new Mirai(config);

Add your bot to a server using https://discordapp.com/oauth2/authorize?client_id=YOUR_CLIENT_ID&scope=bot.

Abstract Classes

Abstract classes are provided to ensure you have the required methods. They can be accessed like so:

const AbstractCommand = require('mirai-bot-core/lib/Base/AbstractCommand');
 
class PingCommand extends AbstractCommand {
    constructor() {
        super();
    }
}