diff --git a/notify_templates/notify_discord.sh b/notify_templates/notify_discord.sh index 9bbf64b..b29966a 100644 --- a/notify_templates/notify_discord.sh +++ b/notify_templates/notify_discord.sh @@ -21,5 +21,8 @@ send_notification() { DiscordWebhookUrl="PasteYourFullDiscordWebhookURL" MsgBody="{\"username\":\"$FromHost\",\"content\":\"$MessageBody\"}" + curl -sS -o /dev/null --fail -X POST -H "Content-Type: application/json" -d "$MsgBody" "$DiscordWebhookUrl" +} +