1.2.10 • Published 3 months ago

botkit-storage-datastore v1.2.10

Weekly downloads
4
License
MIT
Repository
github
Last release
3 months ago

Build Status Coverage Status Downloads Downloads npm version dependencies dev dependencies License

botkit-storage-datastore

A Google Cloud Datastore storage module for Botkit

Usage

Just require botkit-storage-datastore and pass it a config with a projectId option. 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'),
    datastoreStorage = require('botkit-storage-datastore')({projectId: '...'}),
    controller = Botkit.slackbot({
        storage: datastoreStorage
    });
// 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');
1.2.10

3 months ago

1.2.9

1 year ago

1.2.8

2 years ago

1.2.7

3 years ago

1.2.6

4 years ago

1.1.5

4 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago