From 50c5e93343a7447c8415f33f4ead5499cfd0e1a0 Mon Sep 17 00:00:00 2001 From: vrubelroman Date: Sun, 23 Nov 2025 13:11:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B2=D0=B5=D1=80=D1=81=D0=B8=D0=BE=D0=BD?= =?UTF-8?q?=D0=BD=D0=BE=D1=81=D1=82=D1=8C=20=D0=BD=D0=B5=20=D0=B2=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BD=D1=84=D0=B8=D0=B3=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LichessClientTG_bot/bot.py | 3 ++- LichessClientTG_bot/config.py | 3 --- LichessClientTG_bot/version.py | 8 ++++++++ 3 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 LichessClientTG_bot/version.py diff --git a/LichessClientTG_bot/bot.py b/LichessClientTG_bot/bot.py index e952579..c3f25f7 100644 --- a/LichessClientTG_bot/bot.py +++ b/LichessClientTG_bot/bot.py @@ -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 diff --git a/LichessClientTG_bot/config.py b/LichessClientTG_bot/config.py index ae4f780..f6ab393 100644 --- a/LichessClientTG_bot/config.py +++ b/LichessClientTG_bot/config.py @@ -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 diff --git a/LichessClientTG_bot/version.py b/LichessClientTG_bot/version.py new file mode 100644 index 0000000..cb7911f --- /dev/null +++ b/LichessClientTG_bot/version.py @@ -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" +