wechat-help

0.0.3 • Public • Published

wechat-help

generate help message of used wechat-bot.

Default format:

[bot1 name] help message from bot1
[bot2 name] help message from bot2

The bot should export help and better to be named. See example:

module.exports = function createHelp() {
    return function help(req, res, next) {
        ...
    }
    help.help = 'help message auto generated';
    return help;
};

build status

Installation

This module is installed via npm:

$ npm install wechat-help

Example Usage

var wechatHelp = require('wechat-help');
var wechatBot = require('wechat-bot');
 
var bot = wechatBot();
bot.use(wechatHelp(bot));

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.36latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.36
0.0.10

Package Sidebar

Install

npm i wechat-help

Weekly Downloads

6

Version

0.0.3

License

BSD-3-Clause

Last publish

Collaborators

  • rogerz