Skip to content

ibm-cio/botkit-storage-cloudant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Cloudant storage for Botkit

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •