Proper way to change the default_launch_handler
Closed this issue · 2 comments
cteodorski commented
If I don't want my default_launch_handler to say "Launching...", what is the proper way to handle that? I'm trying to write a skill that handles A, B and C. And if a letter is not specified it assumes A. I think I want the default_launch_handler for that...
patricksmith commented
You can use the handle_launch_request
decorator to define a custom launch handler instead of using the default launch handler. If you'd like to use the same method to handle the launch request and an intent, you can stack the decorators. For example, to handle the A
intent and launch with the same method you could write:
@handle_intent('A')
@handle_launch_request
def handle_start_message(request):
pass
cteodorski commented
Thank you for the assistance. Btw, love this library, I couldn't have made my first skill without it.