1.1.1 • Published 3 years ago
commands4d.js v1.1.1
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
});