Skip to content

Conversation

@ElSerda
Copy link

@ElSerda ElSerda commented Nov 2, 2025

  • Add is_vip() method to check VIP status per channel
  • Unify status detection logic to use badges dict (source of truth)
  • Add comprehensive test suite (9 tests) - first tests in repo
  • VIP status only available in badges, not legacy tags

Implementation notes:

  • pyTwitchAPI caches mod/sub but ignored VIP in _handle_user_state
  • VIP badge only available in badges dict (legacy vip tag always '0')
  • Unified MOD/VIP/SUB detection to read from badges (authoritative)
  • Added _vip_status_cache initialization
  • Added tests/ directory with comprehensive test coverage

- Add is_vip() method to check VIP status per channel
- Unify status detection logic to use badges dict (source of truth)
- Add comprehensive test suite (9 tests) - first tests in repo
- VIP status only available in badges, not legacy tags
- Production-validated 15+ hours in KissBot

Implementation notes:
- pyTwitchAPI caches mod/sub but ignored VIP in _handle_user_state
- VIP badge only available in badges dict (legacy vip tag always '0')
- Unified MOD/VIP/SUB detection to read from badges (authoritative)
- Added _vip_status_cache initialization
- Added tests/ directory with comprehensive test coverage
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