версионность не в конфиге

This commit is contained in:
vrubelroman 2025-11-23 13:11:58 +03:00
parent 4b6790be14
commit 50c5e93343
3 changed files with 10 additions and 4 deletions

View file

@ -13,8 +13,9 @@ from telegram.ext import (
from config import (
TELEGRAM_BOT_TOKEN, PERIOD_OPTIONS, POLL_INTERVAL,
POLL_TIMEOUT, DROP_PENDING_UPDATES, ALLOWED_UPDATES,
LICHESS_STATS_API_BASE_URL, ADMINPANEL_TELEGRAM_BOT_TOKEN, BOT_VERSION
LICHESS_STATS_API_BASE_URL, ADMINPANEL_TELEGRAM_BOT_TOKEN
)
from version import BOT_VERSION
from database import Database
from lichess_api import LichessAPI
from formatters import StatsFormatter

View file

@ -48,9 +48,6 @@ DATABASE_PATH = _resolve_database_path()
# Period options for /setperiod command
PERIOD_OPTIONS = [0, 15, 30, 60, 120, 180, 360, 720, 1440] # minutes (0=disable, then: 15min, 30min, 1h, 2h, 3h, 6h, 12h, 24h)
# Bot Version
BOT_VERSION = "1.3.0"
# Telegram Bot Long Polling Configuration
POLL_INTERVAL = 1.0 # seconds
POLL_TIMEOUT = 30 # seconds

View file

@ -0,0 +1,8 @@
"""
Bot version information.
This file is safe to commit and push - it doesn't contain machine-specific configuration.
"""
# Bot Version
BOT_VERSION = "1.4.0"