From a42645c295f3870c0320434aba105b23c3b04631 Mon Sep 17 00:00:00 2001 From: rca Date: Wed, 17 Jul 2024 06:51:33 +0900 Subject: [PATCH] =?UTF-8?q?slot=E3=81=AE=E5=80=A4=E3=82=92=E5=8F=97?= =?UTF-8?q?=E3=81=91=E5=8F=96=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index fc3ef76..e43d0f5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -36,9 +36,12 @@ const KidShiftAuthIntentHandler = { && Alexa.getIntentName(handlerInput.requestEnvelope) === 'KidShiftAuthIntent'; }, async handle(handlerInput: Alexa.HandlerInput) { - const speakOutput = 'Hello World!2'; + const loginCode = Alexa.getSlotValue(handlerInput.requestEnvelope, 'loginCode'); + + const message = 'Slot value is ' + loginCode; + return handlerInput.responseBuilder - .speak(speakOutput) + .speak(message) .getResponse(); } };