From 9e29561213624fdbf06775027af0c51d973fba3d Mon Sep 17 00:00:00 2001 From: Michal Morvay Date: Fri, 23 Dec 2016 09:33:01 +0100 Subject: [PATCH] removed from docs --- README.md | 5 +---- examples/unnamed-intent.js | 10 ---------- package.json | 1 - 3 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 examples/unnamed-intent.js diff --git a/README.md b/README.md index 8b2a51e..aaa0d26 100644 --- a/README.md +++ b/README.md @@ -125,15 +125,12 @@ app.setShouldEndSessionByDefault(true); ### Create Intents -You have multiple options for creating intents. You can create named intents, intents with automatically generated name or intents with multiple sample utterances. +You have to give a name for the intent when you are creating it. Also you can set multiple utterances for any of your intents. ```javascript // Named intent app.intent('MyIntent', 'Hello Alexa my name is Michael', () => 'Hi Michael'); -// Generated intent name -app.intent(null, 'Hello Alexa what is in my calendar for today', () => 'Your calendar is empty. Enjoy'); - // Intent with more utterances app.intent('AnotherIntent', ['Hello', 'Hi', 'Whats up'], () => 'Hello yourself'); ``` diff --git a/examples/unnamed-intent.js b/examples/unnamed-intent.js deleted file mode 100644 index 9c58e67..0000000 --- a/examples/unnamed-intent.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; -const alexia = require('..'); -const app = alexia.createApp('UnnamedIntentExample'); - -// You can ommit the intent name to have it automatically generated -app.intent(null, 'Thank you', () => { - return 'You are welcome'; -}); - -module.exports = app; diff --git a/package.json b/package.json index 4da591b..8dd4b2f 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,6 @@ "toc": "doctoc README.md --github" }, "dependencies": { - "bases": "^0.2.1", "debug": "^2.3.0", "doctoc": "^1.2.0", "glob": "^7.1.1",