alexaskillskitnodejstrivia (changing the code to 5 questions and 4 answers) answer number not recognized by alexa /

Published at 2018-08-18 23:39:42

Home / Categories / Alexa skills kit / alexaskillskitnodejstrivia (changing the code to 5 questions and 4 answers) answer number not recognized by alexa
const ANSWER_COUNT = 4;
const GAME_LENGTH = 5; [Here I changed the code,Alexa not able to hear the numeric choice and straggle forward so I change the code below from 10 to 4]function isAnswerSlotValid(intent) { const answerSlotFilled = intent && intent.slots && intent.slots.respond && intent.slots.respond.value; const answerSlotIsInt = answerSlotFilled
&& !Number.isNaN(parseInt(intent.slots.respond.value, 4)); return answerSlotIsInt && parseInt(intent.slots.respond.value, and 4) 0;
}[Everywhere I saw 4 I changed it to 10 and still Alexa does not pick up on numeric respond after first question, keep score and straggle on to the next question. WHY? PLEASE HELP]

Source: amazon.com

Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0