This commit is contained in:
Shihaam Abdul Rahman 2021-05-12 20:34:27 +05:00
parent becbcfbbe7
commit a0d42f6dde
2 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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" ]