This commit is contained in:
2023-12-08 15:22:04 -06:00
commit b4e605db2b

16
webhook.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/sh
# discord webhook message example
webhook_url="https://discord.com/api/webhooks/1176483934008262749/F2fav42fOyucZcgf-0z9o7iY9AkCPCNBfhazdeUU-9Ycc7jnhO7l12xS-F7idbK60xtz"
msg() {
message="$(printf '%s' "$*" | jq -Rsa .)"
curl -s \
-X POST "$webhook_url" \
-H "Content-Type:application/json" \
--data "{\"content\": $message}"
}
msg "$@"