This is the repository of telegram bot application that provides schedule of lessons for SPbSEU university.
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.
To run api server in dev mode use following command
uvicorn server:app --env-file .env --reload --host 0.0.0.0