Created
November 13, 2022 19:41
-
-
Save helloimalemur/a02d8dfdc0eb11848c12f09f23cfd8e6 to your computer and use it in GitHub Desktop.
Bash Discord Notification
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## first parameter is message | |
## second parameter is url | |
WEBHOOK_URL=$2 | |
JSON="{\"content\": \"$1\"}" | |
curl -d "$JSON" -H "Content-Type: application/json" "$WEBHOOK_URL" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment