The easiest JavaScript/TypeScript Discord bot framework.
Ecstar is the easiest framework Discord.js.
Install Ecstar using npm or yarn.
npm install ecstar
yarn add ecstar
/index.js
```js main.js
const { Client } = require(‘ecstar’);
const client = new Client(options);
client.login(‘Your token here’);
options: [EcstarOptions](https://ecstar.js.org/interfaces/_client_.ecstaroptions.html)
### 📄Command File
`/commands/filename.js`
```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