Browse Source

normalize action

alexa seems to sometimes send other values
pull/10/head
Aaron Parecki 7 years ago
parent
commit
ba55026b3d
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      controllers/alexa.php

+ 1
- 0
controllers/alexa.php View File

@ -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']);

Loading…
Cancel
Save