Files
miku-discord/bot/setup_uno_playwright.sh

35 lines
1.0 KiB
Bash
Executable File

#!/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