Ability to play Uno implemented in early stages!

This commit is contained in:
2026-01-30 21:36:30 +02:00
parent 5b1163c7af
commit 941a46d794
3 changed files with 10 additions and 1 deletions

View File

@@ -4,7 +4,6 @@ WORKDIR /app
COPY requirements.txt . COPY requirements.txt .
RUN pip install -r requirements.txt RUN pip install -r requirements.txt
RUN playwright install
# Install system dependencies # Install system dependencies
# ffmpeg: video/audio processing for media handling # ffmpeg: video/audio processing for media handling
@@ -21,6 +20,9 @@ RUN apt-get update && apt-get install -y \
&& apt-get clean \ && apt-get clean \
&& rm -rf /var/lib/apt/lists/* && 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 # Install Docker CLI and docker compose plugin so the bot can build/create the face detector container
RUN set -eux; \ RUN set -eux; \
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg; \ curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg; \

View File

@@ -144,6 +144,12 @@ async def on_message(message):
await handle_voice_command(message, cmd, args) await handle_voice_command(message, cmd, args)
return 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 # Block all text responses when voice session is active
if globals.VOICE_SESSION_ACTIVE: if globals.VOICE_SESSION_ACTIVE:
# Queue the message for later processing (optional) # Queue the message for later processing (optional)

View File

@@ -64,6 +64,7 @@ COMPONENTS = {
'voice_audio': 'Voice audio streaming and TTS', 'voice_audio': 'Voice audio streaming and TTS',
'container_manager': 'Docker container lifecycle management', 'container_manager': 'Docker container lifecycle management',
'error_handler': 'Error detection and webhook notifications', 'error_handler': 'Error detection and webhook notifications',
'uno': 'UNO game automation and commands',
} }
# Global configuration # Global configuration