Some checks failed
Deploy to Production / test (push) Failing after 36s
- GameServer.ts: Calculate netProfit = grossPayout - betAmount and send as 'net' instead of sending gross payout labeled as net - BlackjackGame.tsx: Fix PnL calculations to use net profit correctly - Hand win/blackjack now shows net profit (payout minus bet) - Lose correctly shows negative bet amount - Round result banner displays roundNet (net profit) with appropriate colors - Remove dead code (myPnl variable that was calculated but never used) - Update color coding: green for profit, red for loss, blue for zero balance
Aurora Web API
The web API provides a REST interface and WebSocket support for accessing Aurora bot data and configuration.
API Endpoints
GET /api/stats- Real-time bot statisticsGET /api/settings- Bot configurationGET /api/users- User dataGET /api/items- Item catalogGET /api/quests- Quest informationGET /api/transactions- Economy dataGET /api/health- Health check
WebSocket
Connect to /ws for real-time updates:
- Stats broadcasts every 5 seconds
- Event notifications via system bus
- PING/PONG heartbeat support
Development
The API runs automatically when you start the bot:
bun run dev
The API will be available at http://localhost:3000