Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 926 Bytes

README.md

File metadata and controls

36 lines (27 loc) · 926 Bytes

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