clean up
This commit is contained in:
parent
becbcfbbe7
commit
a0d42f6dde
@ -12,8 +12,9 @@ curl https://raw.githubusercontent.com/shihaamabr/sarmic/master/bml-tg-notify/bm
|
||||
curl https://raw.githubusercontent.com/shihaamabr/sarmic/master/bml-tg-notify/env.sample > .env
|
||||
|
||||
```
|
||||
edit the contents of .env to your config\
|
||||
`echo XX > delay` where XX is the time in seconds you want to delay script run.
|
||||
Edit the contents of .env to your config\
|
||||
`echo XX > delay` where XX is the time in seconds you want to delay script run.\
|
||||
Please note that if the XX value is less than a certain value, you could get rate limited.
|
||||
|
||||
```
|
||||
chmod +x bml-tg-notify.sh
|
||||
|
@ -4,7 +4,6 @@ mkdir -p ~/.cache/bml-cli/
|
||||
TG_BOTAPI='https://api.telegram.org/bot'
|
||||
BML_URL='https://www.bankofmaldives.com.mv/internetbanking/api'
|
||||
COOKIE=~/.cache/bml-cli/cookie
|
||||
SLEEP=120
|
||||
while true; do
|
||||
LOGIN=$(curl -s -c $COOKIE $BML_URL/login --data-raw username=$BML_USERNAME --data-raw password=${BML_PASSWORD} | jq -r .code)
|
||||
if [ "$LOGIN" = "0" ]
|
||||
|
Loading…
x
Reference in New Issue
Block a user