Skip to content

Jan-Brugger/mydealz_bot

Repository files navigation

mydealz_bot

Requirements

  • Python 3.13
  • Docker

Installing

Configure your project virtual environment:

python3 -m venv ./venv

Switch to your virtual environment:

source ./venv/bin/activate

Install virtual environment dependencies:

pip install --upgrade pip
pip install -r requirements-dev.txt

Create config

cp .env.example .env

Install pre-commit hooks

pre-commit install

Service launching

Run service in Python:

python app.py

Run bot only:

python run_bot.py

Run feed-parser only:

python run_feed_parser.py

To stop it press:

Control + C

Build image with docker build:

docker build -t mydealz_bot .

Build multi-platform-images with buildx:

docker buildx build -t mydealz_bot --platform linux/amd64,linux/arm64,linux/arm/v7 .

Run Docker container:

docker run --env BOT_TOKEN=YOUR-TOKEN --name mydealz_bot mydealz_bot

Run Docker container in background:

docker run --env BOT_TOKEN=YOUR-TOKEN -dit --restart unless-stopped --name mydealz_bot mydealz_bot

Stop Docker container:

docker stop mydealz_bot

Delete Docker container:

docker rm mydealz_bot

Auto format code with ruff

ruff format && ruff check --fix --unsafe-fixes

Validate code syntax with ruff

ruff check

Validate static typing

mypy app.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published