julianh2o / RokuAlexaLambdaSkill

An Alexa Skill that allows voice control of your Roku
MIT License
104 stars 55 forks source link

Duplicate generateRepeatedKeyResponse command does not work #29

Closed sam6258 closed 5 years ago

sam6258 commented 6 years ago

Making a post to an endpoint that uses generateRepeatedKeyResponse like '/keypress/downtwo', then making another call to '/keypress/downtwo' will cause the second instruction to do nothing. This is because the sequence array is no longer defined for the function. This can be fixed by recreating the array when we call generateRepeatedKeyResponse again.