omegabytes / askTheDM

Alexa skill: Get basic info about DND spells, items, and rules
Other
15 stars 10 forks source link

State machine for one-shot/interactive sessions #74

Closed omegabytes closed 7 years ago

omegabytes commented 7 years ago

When application is launched using 'LaunchRequest' set state to oneShotSession When application is launched using 'NewSession' set state to interactiveSession

A one shot session is a one-time, quick answer request, like "Alexa, ask the DM what is the range of fireball". This returns an answer and closes the session without reprompt.

An interactive session prompts the user after each answer, until the user closes the application.

omegabytes commented 7 years ago

we resolved this with session attributes