2.0.2 • Published 3 years ago
@zs_master1/simple-djs v2.0.2
Installation
npm install @zs_master1/simple-djs
Usage
Main file
const simple_djs = require('@zs_master1/simple-djs');
new simple_djs('Your bots token here')
.setCommandsDir('cmds') //defaults to 'commands'
.setFeaturesDir('features') //optional
.load() //Loads the commands
A command file
module.exports = {
aliases: ['ping', 'test'],
description: '',
allowDMs: true,
allowGuilds: true,
arguments: [
{
name: 'argument',
description: 'This is an argument',
type: 3,
}
],
execute: (client, message, args) => {
//do something
}
}
A feature file
module.exports = (client) => {
//do something
}