Installation
If you are using the Jovo Framework version < 2.0.0, please checkout the v1 branch here
In your Jovo project:
To create enable incoming webhooks for your Slack follow this guide.
Customize
NOTE: The webhookUrl is a required parameter
The plugin sends the error message as an attachement. Every parameter is customizable except the ts
parameter.
You can use the config.js
file to add the changes in the following format:
If you don't customize anything, these default values will be used:
Checkout the official documentation for more information on each parameter: Docs
You can also override the channel/user the message should be sent to:
Manual Logs
You can manually log stuff using the logError(jovo: Jovo, error: string | Error)
and logMessage(jovo: Jovo, msg: string | Error)
functions. You always have to parse the jovo object. Inside your intents it would look like this:
The logError()
function will use the same design as the other error messages. logMessage()
will log the message as simple text.
License
MIT