Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
NotificationsYou must be signed in to change notification settings

Jan-Brugger/mydealz_bot

Repository files navigation

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 pippip 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

[8]ページ先頭

©2009-2025 Movatter.jp