Discord_webhook/webhook.sh
justine a8f63f1723 Update webhook.sh
Forgot the shebang
2025-02-10 10:38:33 +01:00

12 lines
262 B
Bash

#!/bin/bash
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