commit 43600efbc6df69384103978058d2e35ca1d5051e Author: justine Date: Sun Feb 9 13:13:38 2025 +0100 Add webhook.sh orig 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