DiscordForge

A command client for discord.js

Stats

StarsIssuesVersionUpdatedCreatedSize
DiscordForge
200.4.05 years ago5 years agoMinified + gzip package size for DiscordForge in KB

Readme

DiscordForge

NPM

Build Status A highly extensible command client for discord.js

Example Usage

const Forge = require('DiscordForge');
const Client = new Forge.Client({selfBot: true, prefix: "/"});

class evalCommand extends Forge.Command {
  constructor(registry) {
    super("eval", null);
  }
  message(message, author, channel, guild, client) {
    try {
      const com = eval(message.content.split(' ').slice(1).join(' '));
      channel.sendMessage('```\n' + com + '```');
    } catch (e) {
      channel.sendMessage('```\n' + e + '```');
    }
  }
}
Client.on('ready', () => {
  console.log('Ready');
})

Client.registry.registerCommand(new evalCommand());
Client.login("token").catch(console.log);

Documentation

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.