Initial commit: Telegram monitoring bot with external configuration
- Externalize configuration to YAML (config_example.yaml) - Add config loader with validation in bot.py - Implement DatabaseManager for activity logging and user stats - Add message handlers with topic awareness - Include setup_venv.sh for automated environment setup - Add requirements.txt with dependencies (python-telegram-bot, PyYAML) - Comprehensive README with setup and configuration instructions
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
# LoggingBot Konfiguration
|
||||
# Kopiere diese Datei zu 'config.yaml' und passe die Werte an
|
||||
|
||||
bot:
|
||||
# Telegram Bot Token (von BotFather erhalten)
|
||||
token: "YOUR_BOT_TOKEN_HERE"
|
||||
# Debug-Ausgaben aktivieren/deaktivieren
|
||||
debug_mode: true
|
||||
|
||||
database:
|
||||
# Name der SQLite-Datenbank
|
||||
name: "group_monitor.db"
|
||||
|
||||
logging:
|
||||
# Aktiviere Datei-Logging (activity_log.txt)
|
||||
write_to_file: true
|
||||
# Dateiname für Aktivitätsprotokolle
|
||||
file_name: "activity_log.txt"
|
||||
# Python Logging Level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
|
||||
level: "INFO"
|
||||
Reference in New Issue
Block a user