0.1.0 • Published 8 years ago
bottender-rollbar v0.1.0
bottender-rollbar
Rollbar middleware for Bottender.
Installation
npm install bottender-rollbarUsage
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
0.1.0
8 years ago