1.0.7 • Published 11 months ago

clayber-handler v1.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

Clayber handler

A useful little command handler.

Command Handler

const handler = require('clayber-handler');
const manager = new handler('./routeCommands');

manager.setOption({
	val: "command",
	descriptor: "description"
})

Template

module.exports = {
	command: "ping",
	description: "Pong",
	func: (client) => {

	}
}

Ussage

const handler = require('clayber-handler');
const manager = new handler('./routeCommands');

// GET LIST COMMANDS
manager.list();

// GET LIST VALUE COMMANDS
manager.listValue();

// HELP COMMAND
manager.helpCommand('ping');

// GET COMMAND
manager.get('ping');

Writed by keigocode

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago