slapp-context-beepboop

1.4.0 • Public • Published

slapp-context-beepboop

Slapp context lookup module for running on Beep Boop

This is an implementation of a context middleware function for slapp for Slack apps running on Beep Boop. It populates the req.slapp.meta object with the following properties, which are pulled from HTTP headers from Beep Boop:

  • app_token
  • app_user_id
  • app_bot_id
  • bot_token
  • bot_user_id
  • bot_user_name
  • team_name
  • team_domain
  • incoming_webhook_url
  • incoming_webhook_channel
  • config (team-specific config)
  • error

Install

npm install --save slapp-context-beepboop

Use

const Slapp = require('slapp')
const BeepBoopContext = require('slapp-context-beepboop')

var slapp = Slapp({
  context: BeepBoopContext(),
})

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.4.0
    0
    • latest

Version History

Package Sidebar

Install

npm i slapp-context-beepboop

Weekly Downloads

0

Version

1.4.0

License

MIT

Last publish

Collaborators

  • bmharris
  • mbrevoort