Добавить config.py в .gitignore
- Добавлен config.py и LichessClientTG_bot/config.py в .gitignore - Удален config.py из отслеживания git (файл остается локально)
This commit is contained in:
parent
974b5ea603
commit
cb1c6b9caf
2 changed files with 4 additions and 23 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -44,6 +44,10 @@ 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/
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
|
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
||||||
import os
|
|
||||||
from dotenv import load_dotenv
|
|
||||||
|
|
||||||
load_dotenv()
|
|
||||||
|
|
||||||
# Telegram Bot Configuration
|
|
||||||
TELEGRAM_BOT_TOKEN = "8241474807:AAH684LTY93aXRou4-LtqU5-p8LuEjzYn8U"
|
|
||||||
|
|
||||||
# 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