This project can be run purely with python, but also supports the deployment using docker-compose
Purely python running:
0.1. Check if you have the right version of python. Python3 -V should output 3.7+.
If you are on Windows, remove uvloop from requirements.txt as this lib doesn't work on this OS.
- Copy an example environment file with
cp example.env local.env
- Add environment variables from
local.env
to your local os. If you're on UNIX, you can add them only for the python running. Read here about it - Create a virtual environment with
python3 -m virtualenv venv
. - Run
source venv/bin/activate
to activate the venv - Install modules with
pip install -r requirements.txt
- Run bot with
python handlers.py
With docker-compose:
- Copy an example environment file with
cp example.env local.env
- Modify the local environment file named
.env
- Run
docker-compose up -d --build