botimize-botkit-middleware

0.1.8 • Public • Published

botimize-botkit-middleware

build status npm

This middleware plugin for Botkit allows you to seamlessly integrate Botimize functionalities into your Botkit bot.

Setup

  • Create a free account at Botimize to get an API key.

  • Install this middleware plugin with npm:

    npm install --save botimize-botkit-middleware

Usage

  • Use API key to create a new botimize and middleware objects:

    const botimize = require('botimize')('<YOUR-API-KEY>', 'facebook');
    const botimizeBotkit = require('botimize-botkit-middleware')(botimize);
  • Setup Botkit middleware:

    const controller = botkit.facebookbot({...});
    controller.middleware.receive.use(botimizeBotkit.receive);
    controller.middleware.send.use(botimizeBotkit.send);

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.80latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.80
0.1.70
0.1.60
0.1.51
0.1.40
0.1.30
0.1.20
0.1.10
0.1.00
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i botimize-botkit-middleware

Weekly Downloads

1

Version

0.1.8

License

MIT

Last publish

Collaborators

  • botimize.io
  • houjunchen