dogehouse-js-command-manager
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i dogehouse-js-command-manager

Weekly Downloads

1

Version

0.0.6

License

GPL-3.0-or-later

Unpacked Size

6.28 kB

Total Files

8

Last publish

Collaborators

  • realprokopschield