Sfoglia il codice sorgente

normalize action

alexa seems to sometimes send other values
pull/10/head
Aaron Parecki 7 anni fa
parent
commit
ba55026b3d
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 276C2817346D6056
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. +1
    -0
      controllers/alexa.php

+ 1
- 0
controllers/alexa.php Vedi 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']);

Caricamento…
Annulla
Salva