Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 760 Bytes

File metadata and controls

35 lines (22 loc) · 760 Bytes

The-Mighty-Todolist-Telegram-Bot

Prepare Dev Environment

  1. Install Dependencies:

    Use poetry as an environment and module manager to install dependencies by:

    poetry install
  2. 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
  3. 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
  4. Run:

    Don't forget to run the bot via poetry.

    poetry run python app/bot.py