0.1.0 • Published 6 years ago

talkdirtytome-botkit v0.1.0

Weekly downloads
2
License
MIT
Repository
-
Last release
6 years ago

Chatbase middleware for Botkit

Middleware for Botkit that allows for Talk Dirty to Me integration

Install

npm install talkdirtytome-botkit --save

Usage

Include this module and initialize it with your td2m API key.

var tdm2 = require('talkdirtytome-botkit')(API_KEY);

Add the following code after initializing the Botkit controller.

controller.middleware.receive.use(tdm2.receive);
controller.middleware.send.use(tdm2.send);

Credits

This middleware used Chatbase-botkit as inspiration