1.1.1 • Published 3 years ago

commands4d.js v1.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Commands4D.JS

Simple command framework for Discord.JS v12

Usage:

Setup client:

const Commands = require('commands4d.js');

const bot = new Commands.Client();

bot.setup({
    folder: 'commands',
    prefix: '!',
    ignoreBot: true,
    ignoreDM: true
});

bot.registerCommands();

bot.login('<TOKEN>');

Setup command(s):

const { Command } = require('commands4d.js');
module.exports = new Command({
    name: 'test',
    aliases: [ 'test2' ],
    execute: async (bot, message, args) => {
        message.reply('Works!');
    }
});

Also can create only owner commands,

bot.setup({
    owners: [ 'ids' ]
});

new Command({
    owner: true
});
1.1.1

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago