From 99319073f0abe1901c80830aae25cf20e3676799 Mon Sep 17 00:00:00 2001 From: pmow Date: Mon, 18 Jan 2016 21:16:59 -0500 Subject: [PATCH] ident --- External-Scripts-(experimental).md | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/External-Scripts-(experimental).md b/External-Scripts-(experimental).md index 644fb75..b1ea6f8 100644 --- a/External-Scripts-(experimental).md +++ b/External-Scripts-(experimental).md @@ -1,11 +1,13 @@ ## Telegram notification basic script -`#!/bin/sh` -`USERID=""` -`KEY=""` -`TIMEOUT="10"` -`URL="https://api.telegram.org/bot$KEY/sendMessage"` -`TEXT="Shit 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 +# 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!"` + + `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