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:
@@ -1,20 +1,8 @@
|
||||
version: '3.8'
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
vndb-bot:
|
||||
bot:
|
||||
build: .
|
||||
container_name: vndb-telegram-bot
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- TELEGRAM_BOT_TOKEN=${TELEGRAM_BOT_TOKEN}
|
||||
- VNDB_TOKEN=${VNDB_TOKEN:-}
|
||||
- LOG_LEVEL=INFO
|
||||
- USE_SANDBOX=false
|
||||
volumes:
|
||||
- ./logs:/app/logs
|
||||
networks:
|
||||
- bot-network
|
||||
|
||||
networks:
|
||||
bot-network:
|
||||
driver: bridge
|
||||
restart: always
|
||||
env_file:
|
||||
- .env
|
||||
Reference in New Issue
Block a user