Add sports-score-alert: proactive game alerts with comeback detection#285
Closed
hassan1731996 wants to merge 3 commits into
Closed
Add sports-score-alert: proactive game alerts with comeback detection#285hassan1731996 wants to merge 3 commits into
hassan1731996 wants to merge 3 commits into
Conversation
… with comeback detection Watches followed teams across NFL, NBA, MLB, NHL, soccer, and cricket and fires voice interrupts for pre-match, game start, score changes, comebacks, halftime, and final results. Smart polling: 60s live, 300s pre-game, 1800s idle. Event deduplication via game-id + alert-type in persistent KV store.
Contributor
✅ Community PR Path Check — PassedAll changed files are inside the |
Contributor
✅ Ability Validation Passed |
Contributor
🔀 Branch Merge CheckPR direction: ✅ Passed — |
Contributor
🔍 Lint Results✅
|
Contributor
|
Hi @hassan1731996, please share the demo video. |
Contributor
Author
|
Hey @abubakar4360, recorded a live test on the editor - here's the video: https://mega.nz/file/3Qc2kKqD#5xkg5p99mWGs3OjmWB-gHzQopkfo2EEytKYxE3FYFRY Ran through the full flow: follow multiple teams (Yankees, Red Sox, Inter Miami), live scores, upcoming schedule, recent results, and unfollow with confirmation. All working on real ESPN data. Also created a new PR with all the latest fixes: #289 |
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.
What this adds
A proactive sports daemon that watches your followed teams and interrupts you when something actually happens — not when you remember to ask.
Supported sports & APIs
Alert types
score_{a}-{b}to deduplicatepostAll spoken alerts are LLM-composed with match context — not just the number.
Smart polling
The daemon recomputes sleep time every loop — idle weekdays don't burn API quota.
What Alexa can't do
Alexa reports scores on-demand. This daemon fires when your team scores, detects comebacks, and tells you the result the moment the game ends — with spoken context like "Lakers on a 12-2 run, 98-91 with 4 minutes left."
Validation
No
print(),asyncio.sleep(),asyncio.create_task(),open(),assert, or hardcoded keys.