feat: channel points hint system with EventSub integration#79
Open
FlorentPoinsaut wants to merge 3 commits into
Open
feat: channel points hint system with EventSub integration#79FlorentPoinsaut wants to merge 3 commits into
FlorentPoinsaut wants to merge 3 commits into
Conversation
- Add SemanticEngine.get_hints() to retrieve Word2Vec neighbors - Extend GameState with hint pool, HintResult enum, and next_hint() method - Add HINT_REWARD_NAME, HINTS_PER_GAME, HINT_POOL_SIZE config variables - Update default OAuth scopes to include channel:read:redemptions and channel:manage:redemptions - Implement EventSub WebSocket subscription for channel points redemptions - Auto-cancel (refund) redemptions when no game running or limit reached - Rename 'hint' command to 'top' (shows leaderboard) - Add new 'hint' broadcaster command to manually trigger next hint - Update overlay to display all revealed hints in persistent panel - Add comprehensive tests for hints, renamed commands, and EventSub handling - Update help text, README, agent descriptions, and functional tests Resolves #78
- Add HINT_REWARD_NAME, HINTS_PER_GAME, HINT_POOL_SIZE to environment variables table - Add comprehensive setup section with step-by-step instructions for: - Creating Twitch channel points reward - Configuring environment variables - Granting required OAuth scopes - Starting the bot with EventSub subscription - Explain auto-refund behavior and hint progression (farthest to closest)
The warning originates from TwitchIO's internal architecture: - twitchio/ext/eventsub/__init__.py imports EventSubClient (HTTP server) even when we only use EventSubWSClient (WebSocket client) - EventSubClient's inheritance from web.Application is deprecated in aiohttp - We cannot avoid this warning without modifying TwitchIO itself Solution: Filter the warning in pytest config with detailed comment explaining the issue. This is the recommended approach for third-party library warnings that are outside our control.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements the channel points hint system described in #78.
Changes
Core Features
EventSub Integration
Bot Commands
hint→top(shows top 10 guesses leaderboard)hint(broadcaster only) — manually triggers next hint from pool without channel pointsOverlay
Tests & Documentation
Acceptance Criteria (from #78)
Breaking Changes
poetry run python main.py auth-loginto grant new OAuth scopes (channel:read:redemptions, channel:manage:redemptions).Closes #78