4.0.1 • Published 2 years ago

koishi-plugin-blame v4.0.1

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

koishi-plugin-blame

npm

notice you when unhandled error

version

v1

for koishi v1

v2

for koishi v2

v3

for koishi v3

options

options.catch

  • type: Array
  • for: v1, v2, v3
  • default: ["unhandledRejection", "uncaughtException"]

An array of errors or rejections. mapped as error in process.on(error, handler)

options.send

  • type: Object
  • for: v1, v2, v3
  • default: ...

Group of contact to send the error messages. (use default if you want error handling only)

v3 requires all elements to be a string contains platform and id (formatted as {platform}:{id}) | Key | Type | Version | Default | Description | |-----|------|--------:|---------|-------------| | private | Array | v1, v2, v3 | [] | Contacts you want to send the error message to. | group | Array | v1, v2, v3 | [] | Groups you want to send the error message to. | channel | Array | v3 | [] | Channels you want to send the error message to. will be merged with options.send.group

options.sender

  • type: Array
  • for: v3
  • default: []

Bots you want to set as a sender. requires elements to be a string contains platform and id (formatted as {platform}:{id})

this plugin will find a suitable bot for you if the bot for the target platform is not exists.

the bot you defined will be prioritized.

4.0.1

2 years ago

4.0.0

2 years ago

3.0.0

3 years ago

1.0.0

4 years ago