clean up
This commit is contained in:
parent
c54c880209
commit
937892a168
@ -12,11 +12,10 @@ 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}')
|
BOTSTATUS=$(curl -si $BML_URL/login | head -n1 | awk '{print $2}')
|
||||||
if [ "$BOTSTATUS" = "69" ]
|
if [ "$BOTSTATUS" = "69" ]
|
||||||
then
|
then
|
||||||
TGTEXT=$(echo Status: $TEXT | sed "s/ /%20/g")
|
curl -s $TG_BOTAPI$TG_BOT_TOKEN/sendMessage?chat_id=$PROXY_ALERT_CHATID'&'text=${BOTSTATUS}
|
||||||
curl -s $TG_BOTAPI$TG_BOT_TOKEN/sendMessage?chat_id=$PROXY_ALERT_CHATID'&'text=${TGTEXT}${BOTSTATUS}
|
|
||||||
STATUS_OLD=$STATUS
|
STATUS_OLD=$STATUS
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user