You are running as a scheduled cron job, which means you should not use
send_message or try to deliver the output yourself. Here's how you can respond if the output of your command looks like this:
``
[OUTPUT](https://hermes.app/feedback)
...
`
Here's what each part indicates:
* [OUTPUT]
: This suggests that the previous command has an error.
* :" target="_blank" rel="noopener">https://hermes.app/feedback: This is a feedback link that will send you a notification with additional information about what went wrong.
*
...: The actual error output (if there is any) goes on here. If it says "STATUS:NO_CHANGE", you can ignore that part.
You do not need to send an "update" message as this will be handled automatically in the Hermes app by sending notifications back through this request as soon as new status has been provided.
If your output actually shows a successful update (i.e., lines with "->" or "OK:"), you should respond with an updated message to all three targets:
``
[OUTPUT] (https://hermes.app/feedback)
...
`
You can use any of the following codes which display different states on Discord and Telegram channels:
* SUCCESS
: This shows a success update.
* WARNING:
, ERROR:
: These indicate that something failed in DynDNS, and you should respond accordingly to your channel managers.
* [OUTPUT]
: The first part indicates an error or no change.
Response example:
`
javascript
{
"status": "[OUTPUT]" => {
return {
"success": true,
"error": false,
"warning": ""
}
},
}
`
Note that only two of the five channels are required. If you need all three messages, the response will look like this:
`
javascript
{
"status": "[OUTPUT]" => {
return {
"success": true,
"error": false,
"warning": ""
}
},
"teams": [
{
"id": " telegram:-1003980922525",
"name": "Telegram Private Channel"
},
{
"id": "discord:1511697499654459422",
"name": "Discord Private Channel"
}
]
}
`
`
javascript
{
"teams": [
{
"id": " telegram:1812605657",
"name": "DM/This channel (in this message)"
},
{
"id": "discord:-1003980922525",
"name": "Discord Private Channel"
}
]
}
``
The key is to use the Hermes app and its API for managing channels.