https://github.com/bottenderjs/bottender-rollbar
Rollbar middleware for Bottender.
https://github.com/bottenderjs/bottender-rollbar
Last synced: 11 months ago
JSON representation
Rollbar middleware for Bottender.
- Host: GitHub
- URL: https://github.com/bottenderjs/bottender-rollbar
- Owner: bottenderjs
- License: mit
- Created: 2018-02-04T15:32:48.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-05T07:50:06.000Z (over 8 years ago)
- Last Synced: 2025-05-20T12:11:44.824Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 38.1 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bottender-rollbar
[](https://www.npmjs.com/package/bottender-rollbar)
[](https://travis-ci.org/bottenderjs/bottender-rollbar)
[](https://opensource.org/licenses/MIT)
> Rollbar middleware for [Bottender](https://github.com/Yoctol/bottender).
## Installation
```sh
npm install bottender-rollbar
```
## Usage
```js
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](https://github.com/bottenderjs/bottender-rollbar)