diff --git a/External-Scripts-(experimental).md b/External-Scripts-(experimental).md new file mode 100644 index 0000000..9cb0fac --- /dev/null +++ b/External-Scripts-(experimental).md @@ -0,0 +1,12 @@ +## 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: $1! Go check on it, noob!" + +if [ "$1" != "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