версионность не в конфиге
This commit is contained in:
parent
4b6790be14
commit
50c5e93343
3 changed files with 10 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
8
LichessClientTG_bot/version.py
Normal file
8
LichessClientTG_bot/version.py
Normal 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"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue