Update webhook.sh
This commit is contained in:
parent
a8f63f1723
commit
336f3668d3
@ -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
|
Loading…
x
Reference in New Issue
Block a user