notice you when unhandled error
for koishi v1
for koishi v2
for koishi v3
- type:
Array
- for: v1, v2, v3
- default:
["unhandledRejection", "uncaughtException"]
An array of errors or rejections. mapped as error
in process.on(error, handler)
- 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 |
- 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.