bml-tg-notify/README.md

42 lines
1.8 KiB
Markdown
Raw Normal View History

2021-05-13 23:22:04 +05:00
# BML-TG-NOTIFY
2021-05-13 22:40:24 +05:00
## Push Notification BML Transcations to Telegram
2021-05-14 00:33:16 +05:00
![bml-notify-screenshot.jpg](bml-notify-screenshot.jpg)
2021-05-13 22:40:24 +05:00
2021-05-14 00:40:16 +05:00
## Is it safe?
- Probably, I will NOT take resposibilty to whatever you do with this script,
Understand how this works before proceeding. Your BML Username and Password will be saved in PLAIN TEXT!
Anyone who has access (or gains access) to your server or computer can read .env file and optain your BML login credentials!
2021-05-13 22:57:53 +05:00
2021-05-14 00:40:16 +05:00
## Limitations
- At the moment this script can only check 1 account from personal profile.
### There's catch!
- BML do NOT allow you to be logged in more than 1 device at a time,
2021-05-13 23:22:04 +05:00
So when this script runs and if you were using Mobile App or Website you will be logged out!
2021-05-14 00:40:16 +05:00
Which is why I have added a delay to change how often script logs into account and check for new transactions,
This can be configured when you set up. You either get fast notification but with less time to use app to do whatever you do
2021-05-13 23:22:04 +05:00
OR take as much as time you want to use app but slow notifications.
2021-05-13 22:57:53 +05:00
2021-05-14 00:37:26 +05:00
## Setup
### Requriements
`curl` `jq`
- Install with whatever package manager you use.
- Make SURE they are installed before continuing!
2021-05-14 00:38:09 +05:00
### Download script and config
2021-05-13 22:40:24 +05:00
```
git clone https://github.com/shihaamabr/bml-tg-notify.git
cd bml-tg-notify
chmod +x bml-tg-notify.sh
2021-05-13 23:30:32 +05:00
cp env.sample .env
2021-05-13 22:40:24 +05:00
```
- Edit the contents of .env to your config with text editor of your choosing (`nano .env`)\
2021-05-14 00:05:45 +05:00
[How to obtain BML_ACCOUNTID](https://raw.githubusercontent.com/shihaamabr/bml-tg-notify/main/how-to-obtain-BML_ACCOUNTID.png)
2021-05-13 23:22:04 +05:00
- Optionally edit delay `echo XX > delay` where XX is the time in seconds you want to delay script run,
By default this is set to 160. Please note that if the XX value is less than a certain value
your IP could blocked by CloudFlare for DoS attack.
2021-05-13 22:40:24 +05:00
```
./bml-tg-notify.sh
```
2021-05-14 00:40:16 +05:00
## Bugs
2021-05-13 22:40:24 +05:00
- You tell me :)