Storage module for Botkit when running on Beep Boop. Internally this module uses the BeepBoop Persist API along with the Slack Teams API to provide a Botkit storage adapater.
npm install --save botkit-storage-beepboop
This module expects the following environment variable to be set for authentication. It's set automatically when running on Beep Boop, but when running locally you need to make sure you set it appropriately.
BEEPBOOP_TOKEN="API_TOKEN_FROM_BEEPBOOP_PROJECT"
var BotkitStorageBeepBoop = require('botkit-storage-beepboop')
var controller = Botkit.slackbot({
storage: BotkitStorageBeepBoop()
})
Returns a Beep Boop Perist api:
options.token
- defaults toprocess.env.BEEPBOOP_TOKEN
- auth token passed into environment by Beep Boopoptions.url
- defaults toprocess.env.BEEPBOOP_API_URL || 'https://beepboophq.com/api/v1
- api url passed into environment by Beep Boop