/mastobots

Various and diverse bots in the fediverse

Primary LanguagePython

Mastobots - Various and diverse bots in the fediverse

Code style: black Imports: isort pre-commit flake8

Setup

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

Configuration

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

Run

Run using poetry CLI

poetry run python mastobots.py [POWER] bot.config.yaml

POWER refers to available bots, listed as keys in the config file

Run using docker image

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