Вернуть config.py в репозиторий
- Удален config.py из .gitignore - config.py теперь отслеживается в git - Позволяет синхронизировать настройки между машинами
This commit is contained in:
parent
b031539f5e
commit
a5d6481495
2 changed files with 23 additions and 3 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -44,9 +44,6 @@ logs/
|
||||||
.env.local
|
.env.local
|
||||||
.env.backup
|
.env.backup
|
||||||
|
|
||||||
# Config files
|
|
||||||
config.py
|
|
||||||
LichessClientTG_bot/config.py
|
|
||||||
|
|
||||||
# Node modules (если будут использоваться)
|
# Node modules (если будут использоваться)
|
||||||
node_modules/
|
node_modules/
|
||||||
|
|
|
||||||
23
LichessClientTG_bot/config.py
Normal file
23
LichessClientTG_bot/config.py
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
import os
|
||||||
|
from dotenv import load_dotenv
|
||||||
|
|
||||||
|
load_dotenv()
|
||||||
|
|
||||||
|
# Telegram Bot Configuration
|
||||||
|
TELEGRAM_BOT_TOKEN = "7903295042:AAGBO2k8pfBDy4RoLRFsknwE7z0N-thAPI8"
|
||||||
|
|
||||||
|
# Lichess API Configuration
|
||||||
|
LICHESS_API_BASE_URL = "https://lichess.org/api"
|
||||||
|
LICHESS_STATS_API_BASE_URL = "http://localhost:8001" # For Docker container access
|
||||||
|
|
||||||
|
# Database Configuration
|
||||||
|
DATABASE_PATH = "/app/data/lichess_bot.db"
|
||||||
|
|
||||||
|
# Period options for /setperiod command
|
||||||
|
PERIOD_OPTIONS = [0, 15, 30, 60, 120, 180] # minutes
|
||||||
|
|
||||||
|
# Telegram Bot Long Polling Configuration
|
||||||
|
POLL_INTERVAL = 1.0 # seconds
|
||||||
|
POLL_TIMEOUT = 30 # seconds
|
||||||
|
DROP_PENDING_UPDATES = True
|
||||||
|
ALLOWED_UPDATES = ["message", "callback_query"]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue