Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

disconode

milan443MIT1.0.3

DiscoNode is a small and lightweight wrapper for bot creation with the discord.js framework.

discord, discord-js, discord.js, javascript

readme

DiscoNode

DiscoNode is a small and lightweight wrapper for bot creation with the discord.js framework.

Installation

npm install --save disconode

Example usage

const DiscoNode = require('disconode');

let disco = new DiscoNode.Disco('YOUR_TOKEN');

disco.login().then(function() {
    console.log('Logged in.');
});

disco.registerCommand('ping', function(message) {
    message.soft.reply('pong');
}, 'Replies with pong.');

disco.setHelpCommand('help', '**Help Page**', true);