bottender-rollbar
0.1.0 • Public • Published bottender-rollbar
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
Weekly Downloads