bml-status-tg-bot/README.md

34 lines
854 B
Markdown
Raw Normal View History

2021-11-29 19:40:06 +05:00
# BML Telegram Status Bot
2021-11-29 17:12:10 +05:00
2021-11-29 19:40:06 +05:00
## Alert BML Online/Down for maintanace on Telegram
## Getting started.
2022-04-08 14:21:38 +05:00
### Requirements
2022-04-08 14:28:47 +05:00
`curl` `jq` `screen`
2021-11-29 19:40:06 +05:00
- 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)