botkit-storage-cloudant

1.0.1 • Public • Published

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 = require('botkit');
const cloudantStorage = require('botkit-storage-cloudant')({uri: 'http://admin:pass@localhost:8080'});

const bot = Botkit.slackbot({
    storage: cloudantStorage
});

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

Readme

Keywords

Package Sidebar

Install

npm i botkit-storage-cloudant

Weekly Downloads

0

Version

1.0.1

License

Apache-2.0

Unpacked Size

16.7 kB

Total Files

5

Last publish

Collaborators

  • crshnburn