0.0.2-alpha.5 • Published 4 years ago

@orbital-frame/plugin-error-trap v0.0.2-alpha.5

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

@orbital-frame/plugin-error-trap

Intercept error messages and redirect them to channel output

Installing

npm install --save @orbital-frame/plugin-error-trap

Usage

import errorTrap from '@orbital-frame/plugin-error-trap'

// add `errorTrap` to your bot's plugins

Because plugins are loaded in order, error-trap should be loaded at the top in order to process all errors