Skip to content

detobey/scorecheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

picture

Baseball Score Check

Baseball Score Check is your major league scorecard on Alexa! Tell Alexa to 'Open Baseball Score Check' then ask for any team and date back to the 2005 season. For instance, ask 'Alexa, check the Mariners score June 2 2016'. For help, say 'HELP'. For a complete team list, say 'TEAM LIST'.

This Alexa skill permits the user to retrieve the score and winning pitcher for any baseball game played, back to the 2005 season. Scores are retrieved by the mlbgame library.

  • "Alexa, check the Mariners score yesterday"
  • "Alexa, check the Seattle Mariners score on August 15, 2012"
  • "Alexa, Mariners last week"

User input is validated five times before the request is passed:

  1. If the user asks for the 'Diamondbacks', the skill converts the teamname to 'd-backs'
  2. If the user did not give a date, the user is prompted for a date
  3. If the user gave a nonsensical date, the user is prompted for a valid date
  4. If the user gave a nonsensical team, the user is prompted for a valid team or the team list
  5. If the user requested a date < the 2005 season, the user is prompted for a date >= 2005

Baseball Score Check is my first Alexa skill, completed in October 2017. It is written in Python on the flask-ask framework. I am grateful for the help and patience of John Wheeler and the community he has built around his extension. I am also indebted to the mlbgame library, developed by Zach Panzarino, that powers the skill's baseball gamestat retrieval.

This skill and its codebase is available free of charge. If you'd like to feature or reuse any part of my code, please credit my work and pay it forward by helping other Python developers grow the flask-ask community. - David Tobey

About

Alexa Baseball Score Check skill

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages