Skip to content

bottenderjs/bottender-rollbar

Repository files navigation

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

About

Rollbar middleware for Bottender.

Resources

License

Stars

Watchers

Forks

Packages

No packages published