Ability to play Uno implemented in early stages!

This commit is contained in:
2026-01-30 21:43:20 +02:00
parent 5b1163c7af
commit 0a9145728e
6 changed files with 687 additions and 1 deletions

34
bot/setup_uno_playwright.sh Executable file
View File

@@ -0,0 +1,34 @@
#!/bin/bash
# setup_uno_playwright.sh
# Sets up Playwright browsers for UNO bot automation
echo "🎮 Setting up Playwright for Miku UNO Bot..."
echo ""
# Check if we're in the bot directory
if [ ! -f "bot.py" ]; then
echo "❌ Error: Please run this script from the bot directory"
echo " cd /home/koko210Serve/docker/miku-discord/bot"
exit 1
fi
# Install Playwright browsers
echo "📦 Installing Playwright browsers..."
python -m playwright install chromium
if [ $? -eq 0 ]; then
echo "✅ Playwright browsers installed successfully!"
echo ""
echo "🎮 You can now use the UNO commands:"
echo " !uno create - Create a new game"
echo " !uno join CODE - Join an existing game"
echo " !uno list - List active games"
echo " !uno quit CODE - Quit a game"
echo " !uno help - Show help"
echo ""
echo "📚 See UNO_BOT_SETUP.md for more details"
else
echo "❌ Failed to install Playwright browsers"
echo " Try running manually: python -m playwright install chromium"
exit 1
fi