Skip to content

Cubinec-py/lighting_telegram_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bot info:

Telegram bot for checking lighting by ip check.

  • Bot code deployed and running in AWS EC2;
  • Bot database running on MySql and deployed in Planetscale;

Functionality:

  • Can make one-time check ip;
  • Can add as many as you want ip addresses in ip list;
  • Can watch and delete all ips which was added to ip list;
  • Can make one-time ip check which was added to ip list;
  • All ips which are in ip list checking every 5 minutes, and if some ip status changed, print message to ip owner about new status and time difference between old status.

Bot functional can try in telegram: Lighting bot

Bot settings:

In main.py you need to put your bot token, so open .env file and put there your token.

TOKEN='HERE_PUT_YOUR_TOKEN'

Same need to do for periodic_check.py, if already done it, skip it.

TOKEN='HERE_PUT_YOUR_TOKEN'

The last what need to do, make settings for MySql db in .env file:

HOST='WRITE_YOUR_HOST_SERVER'
USERNAME='WRITE_YOUR_CLOUD_DB_USERNAME'
PASSWORD='WRITE_YOUR_CLOUD_DB_PASSWORD'
BOT_DB='WRITE_YOUR_CLOUD_DB_NAME'

About

Bot for checking lighting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages