Skip to content
🔰 Discord command framework based on Eris. Also an actual bot.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
commands
docs
microservices
src
.codeclimate.yml
.eslintrc.json
.gitignore
.npmignore
LICENSE
README.md
config_sample.json
index.js
logger.config.json
package.json
yarn.lock

README.md

Yuuko npm module Discord support server Dependency status Dev dependency status Maintainability

A Discord bot in Node that focuses on getting and manipulating information useful to developers and designers.

Using the bot

Usage information for the bot (the usable commands, default configuration, and other help topics) can be found here.

Using the package

Yuuko's core is available as a module on npm. It extends Eris and is basically an alternative to its CommandClient class.

The goal of this module is to provide me a base I can use to make basic, single-server bots. As a result, it doesn't include any faculties for things like per-guild prefixes or configuration.

Installation

$ yarn add yuuko # yarn
$ npm install --save yuuko # npm

Usage

const {Client, Command} = require('yuuko');

const mybot = new Client({
  token: 'your_bot_token',  // Token used to auth your bot account
  prefix: '.'               // Prefix used to trigger commands
});

const pingCommand = new Command('ping', function (msg) {
  msg.channel.createMessage('Pong!')
});

mybot.addCommand(pingCommand).connect();
$ node index.js

For more information, see the API Docs.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.