0.1.0 • Published 2 years ago

@saltfish-bot/plugin-error-catch v0.1.0

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

@saltfish-bot/plugin-error-catch

咸鱼BOT所使用的插件,当框架出现未捕获的异常时会给配置的Q号发送私聊消息

import App from 'saltfish-bot'
import plugin from '@saltfish-bot/plugin-error-catch'

const app = new App()
app
  .plugin(plugin, {
    // 接收私聊消息的Q号
    user_id: [1000]
  })
  .start()
0.1.0

2 years ago