npm

Need private packages and team management tools?Check out npm Orgs. »

yuuko

1.0.1 • Public • Published

Yuuko

npm module Discord support server Dependency status Dev dependency status Patreon contributions

A Discord command framework for Javascript and Typescript. An extension of Eris and alternative to the built-in CommandClient. Documentation

The goal of this module is to provide a starting point for bots of all sizes. Yuuko provides sane defaults and easily-configurable options for new developers, but also builds in extensibility for those needing more control.

Installation

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

Ping-pong example

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

For more examples, check the examples folder. The documentation has more information, including a complete API reference.

Keywords

none

install

npm i yuuko

Downloadsweekly downloads

22

version

1.0.1

license

MIT

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability