mirror of
https://github.com/ZHANGTIANYAO1/teamspeak-music-bot.git
synced 2026-10-01 20:42:50 +08:00
!play/!add/!playnext only ever searched with limit 1, so a same-name song could never be reached from chat (e.g. 'Die For You' always returned the most popular match, not The Weeknd's). Add three disambiguation paths via a shared resolver: - !search <name> — list the top matches (numbered, with id), remembered per bot - !play #N / !add #N — play/queue the Nth result of the last !search - !play id:<id> and pasted NetEase/QQ/BiliBili song URLs — play an exact song Pure parsing (parseSongRef / parseSelectionIndex) is unit-tested; plain-text search keeps the historical top-hit behavior. WebUI search (20 results) already allowed picking same-name songs and is unchanged. Fixes #90 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>