From 43600efbc6df69384103978058d2e35ca1d5051e Mon Sep 17 00:00:00 2001 From: justine Date: Sun, 9 Feb 2025 13:13:38 +0100 Subject: [PATCH] Add webhook.sh orig --- webhook.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 webhook.sh diff --git a/webhook.sh b/webhook.sh new file mode 100644 index 0000000..32f6c9e --- /dev/null +++ b/webhook.sh @@ -0,0 +1,10 @@ +WEBHOOK='https://discord.com/api/webhooks/1338109049413308526/YOURWEBHOOKHEREDARLING' + +#Read from pipe +while read content; +do + MSG="{\"content\":\"${content}\"}" + echo $MSG +done + +curl -X POST -H "Content-Type: application/json" --data $MSG $WEBHOOK