Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

yuuko

0.7.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.

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

26

version

0.7.0

license

MIT

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability