create delay if missing
This commit is contained in:
parent
e797c8a6df
commit
a2402421d9
@ -5,6 +5,11 @@ TG_BOTAPI='https://api.telegram.org/bot'
|
|||||||
BML_URL='https://www.bankofmaldives.com.mv/internetbanking/api'
|
BML_URL='https://www.bankofmaldives.com.mv/internetbanking/api'
|
||||||
COOKIE=~/.cache/bml-cli/cookie
|
COOKIE=~/.cache/bml-cli/cookie
|
||||||
|
|
||||||
|
if [ ! -f delay ]
|
||||||
|
then
|
||||||
|
echo 160 > delay
|
||||||
|
fi
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
LOGIN=$(curl -s -c $COOKIE $BML_URL/login --data-raw username=$BML_USERNAME --data-raw password=${BML_PASSWORD} | jq -r .code)
|
LOGIN=$(curl -s -c $COOKIE $BML_URL/login --data-raw username=$BML_USERNAME --data-raw password=${BML_PASSWORD} | jq -r .code)
|
||||||
if [ "$LOGIN" = "0" ]
|
if [ "$LOGIN" = "0" ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user