1.1.0 • Published 5 years ago
tsuuuuki-handler v1.1.0
Simple class command handler for Discord.js
HandlerClient example
var { HandlerClient } = require('tsuuuuki-handler');
new HandlerClient({token: "abCyourTokEn"}, "prefix");
Command Example
// In src/commands/ping.js
var { Command } = require('tsuuuuki-handler');
module.exports = class extends Command {
constructor() {
super();
// Name and aliases will be defaulted to filename but you can change the name and add aliases like this
this.name = "ping";
this.aliases = ["pong"];
}
run(msg) {
msg.send('Pong!')
}
load() {
console.log('Do something when your command loads (optional)')
}
}