Skip to content

Conversation

@SunnyWang0
Copy link

Adds a new module that displays League of Legends rank badges next to usernames in Twitch chat ONLY when watching League streams.

Features

  • Automatically detects League of Legends streams
  • Fetches and displays rank badges (Iron through Challenger) from EloWard API
  • Shows rank details (tier, division, LP) on hover
  • Click badge to open player's OP.GG profile
  • LRU cache with 1-hour TTL for performance
  • Detects and defers to official EloWard Chrome extension when present
  • User setting to enable/disable (on by default)

Implementation

  • New /modules/eloward/ module with composables for game detection and rank fetching
  • Integrated into existing chat UserTag component
  • Zero performance impact when not on League streams
  • Production-ready with proper error handling and cache management

Configuration

Users can toggle the feature via Settings → Appearance → Vanity → "EloWard Rank Badges"

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.

1 participant