1.1.0 • Published 5 years ago

tsuuuuki-handler v1.1.0

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

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)')
    }
}
1.1.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago