Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 844 Bytes

README.md

File metadata and controls

23 lines (14 loc) · 844 Bytes

Schedule bot

About

This is the repository of telegram bot application that provides schedule of lessons for SPbSEU university.

Installation

To run the application you need to clone the repository:

git clone https://github.com/smart7even/schedule-bot.git

Then install all dependencies:

pip3 install -r requirements.txt

Now you need to create .env file in root of the project and specify key DATABASE_URL with your database url and key SCHEDULE_BOT_TOKEN with telegram bot token.

Open project root in console and make database migrations entering command alembic upgrade head and then fill your database running bot_init.py script.

Now you can use application running main.py script.

Server run

To run api server in dev mode use following command

uvicorn server:app --env-file .env --reload --host 0.0.0.0