Tickets: #2, #3 - Remove duplicate type definitions from shared/lib/config.ts - Import types from schema files (game-settings.ts, guild-settings.ts) - Add GuildConfig interface to guild-settings.ts schema - Rename ModerationConfig to ModerationCaseConfig in moderation.service.ts - Delete shared/config/config.json and shared/scripts/migrate-config-to-db.ts - Update settings API to use gameSettingsService exclusively - Return DB format (strings) from API instead of runtime BigInts - Fix moderation service tests to pass config as parameter Breaking Changes: - Removes legacy file-based configuration system - API now returns database format with string values for BigInt fields
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