diff --git a/External-Scripts-(experimental).md b/External-Scripts-(experimental).md index b1ea6f8..47acf15 100644 --- a/External-Scripts-(experimental).md +++ b/External-Scripts-(experimental).md @@ -1,13 +1,13 @@ ## Telegram notification basic script -# From https://gist.github.com/matriphe/9a51169508f266d97313 - `#!/bin/sh` - `# Just alerts on {video_decision} as first parameter, must be specified in script settings. - `USERID=""` - `KEY=""` - `TIMEOUT="10"` - `URL="https://api.telegram.org/bot$KEY/sendMessage"` - `TEXT="Shit your server is transcoding something: ! Go check on it, noob!"` +### From https://gist.github.com/matriphe/9a51169508f266d97313 + #!/bin/sh + # Just alerts on {video_decision} as first parameter, must be specified in script settings. + USERID="" + KEY="" + TIMEOUT="10" + URL="https://api.telegram.org/bot$KEY/sendMessage" + TEXT="Crap, your server is transcoding something: ! Go check on it, noob!" - `if [ "" != "Direct Play" ]; then` - `curl -s --max-time $TIMEOUT -d "chat_id=$USERID&disable_web_page_preview=1&text=$TEXT" $URL > /dev/null` - `fi` \ No newline at end of file + if [ "" != "Direct Play" ]; then + curl -s --max-time $TIMEOUT -d "chat_id=$USERID&disable_web_page_preview=1&text=$TEXT" $URL > /dev/null + fi \ No newline at end of file