Ecstar is the easiest framework Discord.js.
Install Ecstar using npm or yarn.
npm install ecstar
yarn add ecstar
/index.js
const { Client } = require('ecstar');
const client = new Client(options);
client.login('Your token here');
options: EcstarOptions
/commands/filename.js
const { Command } = require('ecstar');
module.exports = class extends Command {
constructor(client) {
super(client, options);
}
run(message) {
// What to do
}
};
options: commandOptions
/events/filename.js
const { Event } = require('ecstar');
module.exports = class extends Event {
constructor(client) {
super(client, 'Receive event name');
}
run(/* callback here */) {
// What to do
}
};
/args/filename.js
const { Args } = require('ecstar');
module.exports = class extends Args {
constructor(client) {
super(client, 'args name');
}
run(message){
// What to do
}
};
const { Lang } = require('ecstar');
module.exports = class extends Lang {
LOADING_COMMANDS = '';
...
};
See Here