Skip to content

Instantly share code, notes, and snippets.

@ergusto
Forked from lekro/reminder.sh
Last active March 1, 2019 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ergusto/f09cd2bb9a9146b5c56f67991e3bfabf to your computer and use it in GitHub Desktop.
Save ergusto/f09cd2bb9a9146b5c56f67991e3bfabf to your computer and use it in GitHub Desktop.
Send discord webhook using curl
#!/bin/sh
WEBHOOK_URL="put your url here"
JSON="{\"content\":null,\"embeds\": [{\"color\": \"16237652\"},{\"timestamp\": \"YYYY-MM-DDTHH:MM:SS.MSSZ\"},{\"fields\": [{\"name\": \"Grabbed Movie\",\"value\": \"$radarr_movie_title\"},{\"name\": \"Release Name\",\"value\": \"$radarr_release_title\"},{\"name\": \"Quality\",\"value\": \"$radarr_release_quality\",\"inline\": true},{\"name\": \"Source\",\"value\": \"$radarr_release_indexer\",\"inline\": true},{\"name\": \"Size\",\"value\": \"$radarr_release_size\"}]}]}\"
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