Nice Paintings, Mondrian
Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

yuuko

0.8.0 • Public • Published

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.

Keywords

none

install

npm i yuuko

Downloadsweekly downloads

36

version

0.8.0

license

MIT

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability