0.0.6 • Published 4 years ago

dogehouse-js-command-manager v0.0.6

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
4 years ago

DogeHouse.js Command Manager

TypeScript

import CommandManager from 'dogehouse-js-command-manager'

JavaScript

const CommandManager = require('dogehouse-js-command-manager')

Usage

const manager = new CommandManager(app); // app is the dogehouse client
manager.add('!myCommand', (message, argc, argv, argt) => <your function here>);

message => message object

argc => number of arguments

argv => array of arguments

argt => array of tokens

You may return a reply.

This will be sent back to the sender!

To not send anything back, do not return anything, or return null

You may supply an async function, everything should work fine.

(c) 2021 - see License

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago