botkit-storage-cloudant
A storage module for Botkit which stores information in a Cloudant database.
This module conforms to Botkit's storage plugin convention.
Usage
Require botkit-storage-cloudant
and pass it the connection details as documented in the nodejs-cloudant library.
const Botkit = ;const cloudantStorage = uri: 'http://admin:pass@localhost:8080'; const bot = Botkit;
Testing
- Start a Cloudant instance in a docker container.docker run \--detach \--volume cloudant:/srv \--name cloudant-developer \--publish 8080:80 \--hostname cloudant.dev \ibmcom/cloudant-developer
- Run
npm test