botkit-storage-rethinkdb

0.1.0 • Public • Published

botkit-storage-rethinkdb

A RethinkDB storage module for Botkit.

Usage

Just require botkit-storage-rethinkdb and pass it a rethinkdbdash config object. Then pass the returned storage when creating your Botkit controller. Botkit will do the rest.

Make sure everything you store has an id property, that's what you'll use to look it up later.

var Botkit = require('botkit'),
    rdbStorage = require('botkit-storage-rethinkdb')({db: '...'}),
    controller = Botkit.slackbot({
        storage: rdbStorage
    });
// then you can use the Botkit storage api, make sure you have an id property
var beans = {id: 'cool', beans: ['pinto', 'garbanzo']};
controller.storage.teams.save(beans);
beans = controller.storage.teams.get('cool');

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    8
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    8

Package Sidebar

Install

npm i botkit-storage-rethinkdb

Weekly Downloads

7

Version

0.1.0

License

MIT

Last publish

Collaborators

  • thelinuxlich