format tg text

This commit is contained in:
Shihaam Abdul Rahman 2022-04-08 15:38:35 +05:00
parent b8b695dfbf
commit 155f846406
Signed by: shihaam
GPG Key ID: 16ADCF6871CB2A56

View File

@ -15,6 +15,7 @@ source .env
BOTSTATUS$(curl -si https://bmlstatus.shihaam.dev/login | head -n1 | awk '{print $2}') BOTSTATUS$(curl -si https://bmlstatus.shihaam.dev/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=${TGTEXT}${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