‚̧Nodular Pudding Multiverse
    Have ideas to improve npm?Join in the discussion! ¬Ľ

    bottender-rollbar

    0.1.0¬†‚Äʬ†Public¬†‚Äʬ†Published

    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

    Install

    npm i bottender-rollbar

    DownloadsWeekly Downloads

    1

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • avatar