https://github.com/marcobuster/classevivabot
Telegram bot for ClasseViva / Spaggiari electronic register
https://github.com/marcobuster/classevivabot
bot classeviva python telegram
Last synced: 3 months ago
JSON representation
Telegram bot for ClasseViva / Spaggiari electronic register
- Host: GitHub
- URL: https://github.com/marcobuster/classevivabot
- Owner: MarcoBuster
- License: mit
- Created: 2016-10-19T17:24:15.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-13T15:58:08.000Z (over 7 years ago)
- Last Synced: 2025-01-10T11:48:20.578Z (3 months ago)
- Topics: bot, classeviva, python, telegram
- Language: Python
- Homepage: https://t.me/ClasseVivaBot
- Size: 77.1 KB
- Stars: 12
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
README
# ClasseVivaBot [](https://travis-ci.org/MarcoBuster/ClasseVivaBot)
_Telegram bot for the most popular electronic register in Italy_### Installation
1. Install [Redis](https://redis.io/topics/quickstart) and [PostgreSQL](https://www.postgresql.org/download/).
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](https://t.me/BotFather) and take note of the bot token
5. `$ -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._