bottender-rollbar

0.1.0 • Public • Published

bottender-rollbar

npm Build Status License: MIT

Rollbar middleware for Bottender.

Installation

npm install bottender-rollbar

Usage

const { middleware } = require('bottender');
const rollbar = require('bottender-rollbar');
 
bot.onEvent(
  middleware([
    rollbar({
      accessToken: 'POST_SERVER_ITEM_ACCESS_TOKEN',
      environment: 'staging',
    }),
    async context => {
      throw new Error('Boom!!');
    },
  ])
);

License

MIT © Yoctol

Package Sidebar

Install

npm i bottender-rollbar

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • chentsulin
  • etrexkuo
  • tw0517tw
  • link515