I am developing a skill where most features heavily depend on having an account linked. There are a couple basic things like asking for FAQ like information, but for the most part to use the skill you have to be logged in.
I was thus thinking it would make the most sense to add a LoggedInState
and then add most of my intent handlers under that while letting all the intents from non-logged-in users be rerouted through Unhandled
. However, I cannot seem to find docs on how to add handlers from multiple files to a state.
i.e. I want to do something like this:
LoginState: {
require(...),
require(...),
...
}
^ Obviously not valid JavaScript, but I hope that gets the point across.
Is there a way to do the above/a best practice different from what I was trying?