diff --git a/.gitignore b/.gitignore index d4cdddb..932dd2e 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ .cookie .*.kate-swp .cache/* +log.txt diff --git a/bml-status-tg-bot b/bml-status-tg-bot index 17ddc51..af33755 100755 --- a/bml-status-tg-bot +++ b/bml-status-tg-bot @@ -4,7 +4,9 @@ while true; do source .env COUNT=$(echo $[$COUNT+1]) - STATUS=$(curl -s $BML_URL/login | jq .code) + STATUS=$(curl -s $BML_URL/login) + echo $STATUS >> log.txt + STATUS=$(echo $STATUS | jq .code) if [ "$STATUS" = "0" ] then TEXT="🟢BML Online"