12 lines
262 B
Bash
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
|