-
Install Dependencies:
Use poetry as an environment and module manager to install dependencies by:
poetry install
-
Add Environment Variables:
Create
.env
file in project working directory. The env file will provide the needed environment variables to python files.echo "TELEGRAM_TOKEN=THE_REAL_TOKEN\nDATABASE_URL="task.db"" > .env
-
Link Pre-Commit Hook:
Link pre-commit hook to your
.git
file to format python files using black and autopep8.ln pre-commit .git/hooks/pre-commit
-
Run:
Don't forget to run the bot via poetry.
poetry run python app/bot.py