Skip to content

m039/m039ServerBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

m039ServerBot

About

This is a Telegram bot for checking if 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.

Installation

cd <project-directory>

composer 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 <project-directory> && /bin/bash scripts/start-server.sh

Also, put this line into crontab: cd <project-directory> && /bin/bash scripts/run-check-server.sh

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published