Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/m039/m039serverbot
https://github.com/m039/m039serverbot
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/m039/m039serverbot
- Owner: m039
- License: mit
- Created: 2024-02-05T22:54:07.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-02-10T01:12:54.000Z (9 months ago)
- Last Synced: 2024-02-11T01:35:17.060Z (9 months ago)
- Language: PHP
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# m039ServerBot
## About
This is a Telegram bot for checking if [m039.site](https://m039.site) is online.Using this bot, you can subscribe for notifications and receive a message when the server is went online or offline. It is a very basic bot.
The bot's address is [@m039ServerBot](https://t.me/m039ServerBot).
## Installation
```bash
cdcomposer install
echo "TOKEN=..." > .config.ini
echo "PHP=..." >> .config.ini# To use this project you need an access to MySQL database.
echo "DB_HOST=..." >> .config.ini
echo "DB_USERNAME=..." >> .config.ini
echo "DB_PASSWORD=..." >> .config.ini
echo "DB_DATABASE=..." >> .config.ini
```Put this line into crontab: ```cd && /bin/bash scripts/start-server.sh```
Also, put this line into crontab: ```cd && /bin/bash scripts/run-check-server.sh```