Skip to content

171-Feature add autodetection of team if match number is wrong#172

Merged
RemainingDelta merged 1 commit intodevfrom
171-Feature
Mar 28, 2026
Merged

171-Feature add autodetection of team if match number is wrong#172
RemainingDelta merged 1 commit intodevfrom
171-Feature

Conversation

@RemainingDelta
Copy link
Copy Markdown
Owner

Changes

  • Adds find_match_by_team_name() in matcherino.py — fuzzy-matches a team name against all bracket entrants and resolves their current match number, with a per-tourney
    in-memory cache so the team list is only built once per session
  • Fallback triggers in three cases: non-numeric match input, match number not found in bracket, or team name doesn't match either team in the given match — auto-corrects
    the ticket topic and shows the resolved match embed
  • Cache is cleared on !endtourney; no additional API calls since all lookups hit the existing 60s requests_cache

Screenshots

Originally match number is wrong so it searches for the correct team and corrects the match number and team name:
image

Closes #171

@RemainingDelta RemainingDelta merged commit b295e78 into dev Mar 28, 2026
1 check passed
@RemainingDelta RemainingDelta deleted the 171-Feature branch March 28, 2026 04:08
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.

Feature: Identify team by name fuzzy match without match number

1 participant