diff --git a/bot/Dockerfile b/bot/Dockerfile index 5374fd9..1070ad9 100644 --- a/bot/Dockerfile +++ b/bot/Dockerfile @@ -4,7 +4,6 @@ WORKDIR /app COPY requirements.txt . RUN pip install -r requirements.txt -RUN playwright install # Install system dependencies # ffmpeg: video/audio processing for media handling @@ -21,6 +20,9 @@ RUN apt-get update && apt-get install -y \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* +# Install Playwright browsers with system dependencies (for UNO automation) +RUN playwright install --with-deps chromium + # Install Docker CLI and docker compose plugin so the bot can build/create the face detector container RUN set -eux; \ curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg; \ diff --git a/bot/bot.py b/bot/bot.py index 775e613..e853e61 100644 --- a/bot/bot.py +++ b/bot/bot.py @@ -144,6 +144,12 @@ async def on_message(message): await handle_voice_command(message, cmd, args) return + # Check for UNO commands (!uno create, !uno join, !uno list, !uno quit, !uno help) + if message.content.strip().lower().startswith('!uno'): + from commands.uno import handle_uno_command + await handle_uno_command(message) + return + # Block all text responses when voice session is active if globals.VOICE_SESSION_ACTIVE: # Queue the message for later processing (optional) diff --git a/bot/utils/logger.py b/bot/utils/logger.py index d37ce6a..e7d56c9 100644 --- a/bot/utils/logger.py +++ b/bot/utils/logger.py @@ -64,6 +64,7 @@ COMPONENTS = { 'voice_audio': 'Voice audio streaming and TTS', 'container_manager': 'Docker container lifecycle management', 'error_handler': 'Error detection and webhook notifications', + 'uno': 'UNO game automation and commands', } # Global configuration