Skip to content

Instantly share code, notes, and snippets.

View BadBinary's full-sized avatar

BadBinary BadBinary

  • BadBinary LTD
  • Ohio, USA
  • 12:32 (UTC -04:00)
View GitHub Profile

Keybase proof

I hereby claim:

  • I am badbinary on github.
  • I am badbinary (https://keybase.io/badbinary) on keybase.
  • I have a public key whose fingerprint is E646 C8E8 5922 2DEB EB2C BDC9 4D7F FC62 61B4 9D9C

To claim this, I am signing this object:

@BadBinary
BadBinary / handleGetHelpRequest.js
Created August 24, 2016 19:27
Alexa Skills Kit Help Intent Fixes
//Below is the new corrected handleGetHelpRequest function for the FlashCard template and ReindeerGames Template
function handleGetHelpRequest(intent, session, callback) {
// Provide a help prompt for the user, explaining how the game is played. Then, continue the game
// if there is one in progress, or provide the option to start another one.
// Set a flag to track that we're in the Help state.
// Changes to logic to resolve new certification test cases
// Help intent now checks to see if a game is in progress before providing help, else it will prompt to start new game
var gameInProgress = session.attributes;