The project was created as a coursework on the discipline 'Software Engineering'. Lecture schedule in a telegram using a bot.
- Schedule of classes for your group by days and weeks.
- Teacher's schedule.
- Exam Schedule.
You need the latest version of pip
to deploy the project on the local machine.
Install virtualenv:
$ pip install --upgrade virtualenv
Cloning repo:
$ git clone https://github.com/qiwiGremL1n/Schedule-Bot
$ cd Timetable-bot
Created virtualenv:
$ virtualenv -p python3 venv
Open /Timetable-bot/venv/bin/active
and add:
TOKEN='Your bot token'
export TOKEN
DATABASE_URL='Your database URL'
export DATABASE_URL
FLASK_APP=app.py
export FLASK_APP
FLASK_DEBUG=0
export FLASK_DEBUG
SECRET_KEY='Your secret key'
export SECRET_KEY
Activate virtual environment:
$ source venv/bin/activate
Now install required python packages:
(venv) $ pip install -r requirements.txt
Start bot polling:
(venv) $ flask run