#!/bin/bash
# ๐ญ The Enhanced Quake Arena Setup Ritual
#
# "Where we summon 30+ legendary Quake sounds and forge the ultimate coding arena!"
# - The Enhanced Quake Arena Setup Virtuoso
set -e
echo "๐ฏ โจ ENHANCED QUAKE CODING ARENA SETUP COMMENCES!"
echo "๐ Installing Node.js dependencies for 30+ achievements..."
# ๐จ Navigate to the enhanced arena
cd "$(dirname "$0")"
# ๐ฆ Install Node.js dependencies
if command -v npm >/dev/null 2>&1; then
npm install
echo "โ
๐ฆ Enhanced Node.js dependencies installed successfully!"
else
echo "โ Node.js/npm not found. Please install Node.js first:"
echo " brew install node # macOS"
echo " sudo apt install nodejs npm # Ubuntu/Debian"
exit 1
fi
# ๐ช Create enhanced sounds directory if it doesn't exist
mkdir -p sounds
echo "โ
๐ช Enhanced sounds directory created/verified!"
# ๐ Copy existing sounds to enhanced location
if [ -d "../sounds" ]; then
cp -v ../sounds/*.mp3 sounds/ 2>/dev/null || echo "๐ No existing sounds to copy, that's okay!"
echo "โ
๐ Existing sounds copied to enhanced arena!"
fi
# ๐ฏ Check for enhanced sound files
echo "๐ Checking enhanced sound files..."
SOUND_COUNT=$(find sounds -name "*.mp3" 2>/dev/null | wc -l)
echo "๐ต Found $SOUND_COUNT enhanced sound files"
if [ "$SOUND_COUNT" -lt 7 ]; then
echo "๐ โ ๏ธ Only $SOUND_COUNT sound files found. The enhanced arena supports 30+ achievements!"
echo "๐ See SETUP.md for downloading the complete enhanced sound collection"
fi
# ๐ง Set up enhanced executable permissions
chmod +x index.js
echo "โ
๐ง Enhanced executable permissions set!"
# ๐ฎ Update Claude Desktop configuration for enhanced version
CLAUDE_CONFIG_DIR="$HOME/Library/Application Support/Claude"
CLAUDE_CONFIG_FILE="$CLAUDE_CONFIG_DIR/claude_desktop_config.json"
ENHANCED_SERVER_PATH="$(pwd)/index.js"
echo "๐ฏ Updating Claude Desktop configuration for enhanced Node.js server..."
# Create enhanced configuration
ENHANCED_CONFIG='{
"mcpServers": {
"quake-coding-arena": {
"command": "node",
"args": ["'"$ENHANCED_SERVER_PATH"'"]
}
}
}'
# Create Claude config directory if needed
mkdir -p "$CLAUDE_CONFIG_DIR"
# Write enhanced configuration
echo "$ENHANCED_CONFIG" > "$CLAUDE_CONFIG_FILE"
echo "โ
๐ฏ Enhanced Claude Desktop configuration updated!"
echo "๐ Config file: $CLAUDE_CONFIG_FILE"
# ๐ Final enhanced setup celebration
echo ""
echo "๐ โจ ENHANCED SETUP COMPLETE! ๐ โจ"
echo "๐ Enhanced Quake Coding Arena is ready with 30+ achievements!"
echo ""
echo "๐ Next Steps:"
echo " 1. Restart Claude Desktop to load the enhanced server"
echo " 2. Try enhanced commands like:"
echo " โข 'Play godlike achievement sound'"
echo " โข 'Trigger wicked sick achievement at 70% volume'"
echo " โข 'Show me all streak achievements'"
echo " โข 'Random team achievement'"
echo " โข 'What are my enhanced statistics?'"
echo ""
echo "๐ Enhanced Categories Available:"
echo " ๐ฅ Streaks (kill-spree โ godlike)"
echo " โจ Quality (excellent, perfect, impressive)"
echo " โ๏ธ Multi-kills (double-kill โ holy-shit)"
echo " ๐ฎ Game Events (first-blood, headshot, humiliation)"
echo " ๐ฅ Team Achievements (team-kill, taken-the-lead)"
echo " ๐ Power-ups (quad-damage, armor, health)"
echo ""
echo "๐ฏ Ready to DOMINATE with 30+ enhanced achievements! ๐ฅ"