clean up
This commit is contained in:
parent
c54c880209
commit
937892a168
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user