Skip to content

R3alCl0ud/DiscordForge

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published