Skip to content

BeepBoopHQ/botkit-storage-beepboop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sponsored by Beep Boop

botkit-storage-beepboop

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.

Install

npm install --save botkit-storage-beepboop

Usage

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()
})

BotkitStorageBeepBoop([options])

Returns a Beep Boop Perist api:

  • options.token - defaults to process.env.BEEPBOOP_TOKEN - auth token passed into environment by Beep Boop
  • options.url - defaults to process.env.BEEPBOOP_API_URL || 'https://beepboophq.com/api/v1 - api url passed into environment by Beep Boop

About

Storage module for Botkit when running on Beep Boop

Resources

License

Stars

Watchers

Forks

Packages

No packages published