This commit is contained in:
Shihaam Abdul Rahman 2022-04-08 19:27:26 +05:00
parent c54c880209
commit 937892a168
Signed by: shihaam
GPG Key ID: 16ADCF6871CB2A56

View File

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