Browse Source
normalize action
alexa seems to sometimes send other values
pull/10/head
No known key found for this signature in database
GPG Key ID: 276C2817346D6056
1 changed files with
1 additions and
0 deletions
-
controllers/alexa.php
|
|
@ -197,6 +197,7 @@ $app->post('/alexa/endpoint', function() use($app) { |
|
|
|
} |
|
|
|
|
|
|
|
$action = $alexaRequest->slots['Action']; |
|
|
|
$action = ($action == 'drank' ? 'drank' : 'ate'); |
|
|
|
$food = ucfirst($alexaRequest->slots['Food']); |
|
|
|
|
|
|
|
|
|
|
|