added 🟢 and 🔴 emojis

This commit is contained in:
Shihaam Abdul Rahman 2021-12-09 02:19:44 +05:00
parent 6476af15ba
commit c7b8509afb

View File

@ -1,17 +1,17 @@
#!/bin/bash #!/bin/bash
source .env source .env
STATUS_OLD=$(curl -s $BML_URL/login | jq .code) #STATUS_OLD=$(curl -s $BML_URL/login | jq .code)
while true; while true;
do do
STATUS=$(curl -s $BML_URL/login | jq .code) STATUS=$(curl -s $BML_URL/login | jq .code)
if [ "$STATUS" = "0" ] if [ "$STATUS" = "0" ]
then then
TGTEXT="BML%20Online" TGTEXT="🟢BML%20Online"
elif [ "$STATUS" = "37" ] elif [ "$STATUS" = "37" ]
then then
TGTEXT="BML%20Down" TGTEXT="🔴BML%20Down"
else else
TGTEXT="Unknown%20Error" TGTEXT="Unknown%20Error"
fi fi