Skip to content

MarcoBuster/ClasseVivaBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ClasseVivaBot Build Status

Telegram bot for the most popular electronic register in Italy

Installation

  1. Install Redis and PostgreSQL.
  2. Create a database and credentials on PostgreSQL.
  3. Install Python >3.6 and pip on your machine.
  4. Create your own Telegram bot from @BotFather and take note of the bot token
  5. $ <python executable> -m pip install -r requirements.txt
  6. Edit config.sample.py and rename it to config.py:
    • REDIS_HOST, REDIS_PORT, REDIS_DB, REDIS_PASSWORD from Redis configuration.
    • POSTGRESQL_DBNAME, POSTGRESQL_HOST, POSTGRESQL_PORT, POSTGRESQL_USER, POSTGRESQL_PASSWORD from PostgreSQL configuration.
    • In BOT_TOKEN insert the Telegram Bot API token from BotFather.
    • In SCHOOL_YEAR_BEGINNING insert the school year's beginning date by editing the dt(...) object. Note: the "day" param must be "1".
    • In SCHOOL_YEAR_END insert the school year's ending date by editing the dt(...) object. Note: the "day" param must be the last day of the month.

About

Telegram bot for ClasseViva / Spaggiari electronic register

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages