Files
aurorabot/web
syntaxbullet 099601ce6d refactor: convert ModerationService and PruneService from classes to singleton objects
- Convert ModerationService class to moderationService singleton
- Convert PruneService class to pruneService singleton
- Update all command files to use new singleton imports
- Update web routes to use new singleton imports
- Update tests for singleton pattern
- Remove getNextCaseId from tests (now private module function)
2026-02-13 13:33:58 +01:00
..
2026-01-08 16:09:26 +01:00
2026-01-08 16:09:26 +01:00
2026-01-08 16:09:26 +01: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