Refactor VNDB Telegram Bot
- Remove config.py and integrate environment variable handling directly in docker-compose.yml. - Delete detailed_handlers.py and replace with simplified command handlers. - Update requirements.txt to use aiogram and httpx instead of python-telegram-bot and requests. - Remove test_bot.py and utils.py, consolidating functionality into new VNDBClient class. - Implement VNDBClient for API interactions, simplifying query methods for visual novels, characters, and releases. - Clean up docker-compose.yml for improved readability and maintainability.
This commit is contained in:
15
.env.example
15
.env.example
@@ -1,13 +1,2 @@
|
||||
# Telegram Bot Token (обязательно)
|
||||
# Получите у @BotFather в Telegram
|
||||
TELEGRAM_BOT_TOKEN=your_telegram_bot_token_here
|
||||
|
||||
# VNDB API Token (опционально)
|
||||
# Получите на https://vndb.org/u/tokens
|
||||
VNDB_TOKEN=your_vndb_api_token_here
|
||||
|
||||
# Опции логирования
|
||||
LOG_LEVEL=INFO
|
||||
|
||||
# Использовать sandbox API (для тестирования)
|
||||
USE_SANDBOX=false
|
||||
TELEGRAM_TOKEN=your_token_here
|
||||
VNDB_API_URL=https://api.vndb.org/kana
|
||||
Reference in New Issue
Block a user