$ account real-web-world
This is a Go application that integrates with the League of Legends Client (LCU) to provide real-time player analysis and automation during champion select. It monitors the game flow via WebSocket, fetches recent match history for all team members, calculates a composite score based on KDA, first blood, multi-kills, team participation, gold, damage, vision, and CS metrics, then sends 'horse' ratings (e.g., 通天代, 小代) to the in-game chat. It also supports auto-accepting games, auto-picking/banning champions, and exposes an HTTP API for querying scores and configuration. The architecture is a monolithic Go service with a Gin web server, background goroutines for LCU monitoring, and a reverse proxy for the LCU API. It uses SQLite for local config storage and OpenTelemetry for logging. The code is well-structured, with clean separation of concerns, modern Go practices, and a complex scoring algorithm that is configurable via remote or local configuration.