Files
aurorabot/api
syntaxbullet a29bb63a1d
Some checks failed
Deploy to Production / test (push) Failing after 32s
feat(games): implement chess game plugin with full UI
Add chess as the first game plugin using the existing multiplayer framework.
Server-side game logic uses chess.js with server-authoritative clock management.
Client uses react-chessboard v5 with cburnett piece set, drag-and-drop + click-to-move,
configurable time controls (bullet/blitz/rapid/classical/none), draw offers,
resignation, and timeout detection. Extends the game framework with room creation
options to support per-game configuration. Includes 57 tests covering all code paths.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 16:59:26 +02:00
..

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 statistics
  • GET /api/settings - Bot configuration
  • GET /api/users - User data
  • GET /api/items - Item catalog
  • GET /api/quests - Quest information
  • GET /api/transactions - Economy data
  • GET /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