djs-cmd-helper

1.1.1 • Public • Published

djs-cmd-helper

NPM Downloads


NPM Details

Install

npm i djs-cmd-helper --save

Example

const Discord = require("discord.js");
const client = new Discord.Client();
const helper = require("djs-cmd-helper");
const Client = new helper.Client(client);

Client.setOptions({
    prefix:"!"
})

Client.createCommand({
    name:"test",
    description:"Test command",
    code:(bot, message, args) => {
        message.channel.send("test command");
    }
});

Client.onMessage()

client.on("ready", () => {
    console.log(client.user.username);
});

client.login("TOKEN")

Package Sidebar

Install

npm i djs-cmd-helper

Weekly Downloads

0

Version

1.1.1

License

MIT

Unpacked Size

2.78 kB

Total Files

5

Last publish

Collaborators

  • mr_dark