update readme

This commit is contained in:
Shihaam Abdul Rahman 2021-11-29 19:40:06 +05:00
parent ecc89d952a
commit d3940ee5dd

View File

@ -1,3 +1,33 @@
# bml-status-tg-bo
# BML Telegram Status Bot
Alters BML down for maintenance on telegram.
## Alert BML Online/Down for maintanace on Telegram
## Getting started.
### Requriements
`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)