Skip to content

Autocomplete character names (max 3 suggestions) - #14

Merged
joaquinmuzzi merged 1 commit into
masterfrom
claude/project-thread-dc1698
Oct 26, 2026
Merged

joaquinmuzzi merged 1 commit into
masterfrom
claude/project-thread-dc1698

Conversation

@joaquinmuzzi

Copy link
Copy Markdown
Owner

Requested by Joaquín · project thread

Qué cambia

  • Autocompletado del parámetro nombre en /p, /personaje, /dps, /ptoc, /ia y /logs.
  • Hasta 3 sugerencias de tracked_characters (prefijo, más consultados primero), solo lectura.
  • Con reino elegido (o comando de Lordaeron) filtra por reino; sin reino muestra Nombre (Reino) y los comandos lo parsean (split_name_and_realm).
  • Lista cacheada en memoria, refresco cada 5 min; nunca toca el armory.
  • Tests nuevos (tests/test_autocomplete.py), README actualizado. 173 tests, ruff y mypy en verde.

Generated by Claude Code

Suggests names from tracked_characters (prefix match, most looked-up first)
for /p, /personaje, /dps, /ptoc, /ia and /logs. The list is cached in memory
and refreshed every 5 minutes so the answer fits Discord's ~3 s window and the
armory is never touched. With a realm already chosen (or a Lordaeron-only
command) it filters by realm; otherwise it offers "Name (Realm)", which the
commands now parse back into name + realm so an Icecrown character is not
searched in Lordaeron.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Wp5jU5bsCNj22nZA6c2Zd
@joaquinmuzzi
joaquinmuzzi merged commit 0840654 into master Oct 26, 2026
2 checks passed
@joaquinmuzzi joaquinmuzzi self-assigned this Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants