bml-status-tg-bot/README.md
2022-04-08 14:29:16 +05:00

36 lines
944 B
Markdown

# BML Telegram Status Bot
## Alert BML Online/Down for maintanace on Telegram
# NOTE: DUE TO RECENT CHANGES WITH BML TO STOP BOTS, THIS BOT NOW NEEDS A PROXY SERVER!!
## Getting started.
### Requirements
`curl` `jq` `screen`
- Install with whatever package manager you use.
- Make SURE they are installed before continuing!
### Clone repo and Configure
```
git clone https://git.shihaam.dev/shihaam/bml-status-tg-bot.git
cd bml-status-tg-bot
chmod +x run-bml-status-tg-bot.sh
cp env.sample .env
```
- Edit the contents of .env to your config (`nano .env`)
### Execute the script
```
./run-bml-status-tg-bot.sh
```
- This will run the script inside a screen called "bml-status-tg-bot"
- Access screen with `screen -R bml-status-tg-bot`
### Auto start
- Add a cronjob at reboot `crontab -e`
```
@reboot /bin/bash /path/to/run-bml-status-tg-bot.sh
```
## Bugs
- [You tell me :)](https://git.shihaam.dev/shihaam/bml-status-tg-bot/issues/new)