no 69 alert public

This commit is contained in:
Shihaam Abdul Rahman 2022-04-08 15:31:19 +05:00
parent 1af6558448
commit 2834f229b8
Signed by: shihaam
GPG Key ID: 16ADCF6871CB2A56

View File

@ -12,6 +12,12 @@ source .env
else else
TEXT="🔴BML Down" TEXT="🔴BML Down"
STATUS=DOWN STATUS=DOWN
BOTSTATUS$(curl -si https://bmlstatus.shihaam.dev/login | head -n1 | awk '{print $2}')
if [ "$BOTSTATUS" = 69" ]
then
curl -s $TG_BOTAPI$TG_BOT_TOKEN/sendMessage?chat_id=$PROXY_ALERT_CHATID'&'text=${TGTEXT}${BOTSTATUS}
STATUS_OLD=$STATUS
fi
fi fi
if [ "$STATUS" != "$STATUS_OLD" ] if [ "$STATUS" != "$STATUS_OLD" ]
then then