first commit

This commit is contained in:
Marco Gallegos
2025-12-22 22:47:33 -06:00
commit 36b7154c6e
23 changed files with 2713 additions and 0 deletions

12
app/modules/logger.py Normal file
View File

@@ -0,0 +1,12 @@
import logging
from modules.database import SessionUsersAlma
def log_request(telegram_id, username, command, message):
if not SessionUsersAlma:
# DB not configured, just log to console/file
logging.info(f"REQ: {command} from {username} ({telegram_id}): {message}")
return
# DB logic removed as models are not available
logging.info(f"REQ: {command} from {username} ({telegram_id}): {message}")