async def async_handle(self, intent):
     """Handle the intent."""
     response = intent.create_response()
     response.async_set_speech(
         "I've ordered a {}!".format(intent.slots['type']['value']))
     response.async_set_card(
         "Beer ordered",
         "You chose a {}.".format(intent.slots['type']['value']))
     return response
예제 #2
0
 async def async_handle(self, intent):
     """Handle the intent."""
     response = intent.create_response()
     response.async_set_speech("I've ordered a {}!".format(
         intent.slots["type"]["value"]))
     response.async_set_card(
         "Beer ordered",
         "You chose a {}.".format(intent.slots["type"]["value"]))
     return response
예제 #3
0
파일: common.py 프로젝트: fabiandevia/home
 def async_handle(self, intent):
     """Handle the intent."""
     intents.append(intent)
     return intent.create_response()
예제 #4
0
 def async_handle(self, intent):
     """Handle the intent."""
     intents.append(intent)
     return intent.create_response()