poetry
is used to manage environment and dependencies (python>=3.10)
Install poetry:
python -m pip install poetry
Install project's dependencies:
poetry install
Install pre-commit tools:
poetry run pre-commit install
The actionnable bots configuration is handled with a YAML file. bot.config.example.yaml
is an example of such a bot config file.
Copy this config file, then you can edit it to fit your configuration:
cp bot.config.example.yaml bot.config.yaml
poetry run python mastobots.py [POWER] bot.config.yaml
POWER
refers to available bots, listed as keys in the config file
Create local docker image:
docker build -t mastobots:$(poetry version --short) -t mastobots:latest .
Run local docker image:
docker run mastobots:latest [POWER] bot.config.yaml