mirror of
https://github.com/tiennm99/miti99bot.git
synced 2026-06-08 10:13:12 +00:00
53ce1113eb
Phase 6b of the go-port-cloud-run plan. Same shape as loldle-emoji but with quote-pool data and default 6 guesses (vs emoji's 5). - internal/modules/loldlequote: champions.go (embed quotes.json), state.go (game/stats/config persistence), render.go (italic clue + guess list, HTML-escaped), handlers.go (handleQuote / handleGiveup / handleStats / handleSetMax), loldlequote.go (Module Factory). - Reuses internal/modules/util/chathelper and internal/champname so the new module adds no helper duplication. - 4 commands wired in cmd/server/main.go: loldle_quote (public), loldle_quote_giveup (public), loldle_quote_stats (public), loldle_quote_setmax (private). - 17 tests: lookup (embed + redaction-marker check), render (escapes), state (round-trip + JS-wire-format decode + streak sequence), handlers (no-arg / win / unknown / duplicate / giveup / stats / setmax owner+nonowner). go test -race -count=1 ./... clean across all 16 packages; golangci-lint clean.