From 336f3668d3909947b834d20b602e4fe8f65802c9 Mon Sep 17 00:00:00 2001 From: justine Date: Tue, 11 Feb 2025 11:25:22 +0100 Subject: [PATCH] Update webhook.sh --- webhook.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/webhook.sh b/webhook.sh index a184b5c..07e15bb 100644 --- a/webhook.sh +++ b/webhook.sh @@ -1,11 +1,15 @@ #!/bin/bash WEBHOOK='https://discord.com/api/webhooks/1338109049413308526/YOURWEBHOOKHEREDARLING' +ending=" +<@635539351324983374> +-# Sent from $(hostname) @ $(date)" + #Read from pipe while read content; do - MSG="{\"content\":\"${content}\"}" + MSG=$(jq -n -r --arg msg "$content $ending" '{content: $msg}') echo $MSG done -curl -X POST -H "Content-Type: application/json" --data $MSG $WEBHOOK +curl -X POST -H "Content-Type: application/json" --data "$MSG" $WEBHOOK \ No newline at end of file