diff --git a/couchpotato.zip b/couchpotato.zip new file mode 100644 index 0000000..2b7b4dd Binary files /dev/null and b/couchpotato.zip differ diff --git a/lib/handlers.js b/lib/handlers.js index 2a849e7..7806f25 100644 --- a/lib/handlers.js +++ b/lib/handlers.js @@ -7,6 +7,7 @@ var WELCOME_DESCRIPTION = 'This skill allows you to manage your Couch Potato mov var HELP_RESPONSE = ['You can ask Couch Potato about the movies in your queue or add new movies', 'to it. Try asking "is The Godfather on the list?". If it\'s not and you want to add it, try', 'saying "add The Godfather".'].join(' '); +var CANCEL_RESPONSE = 'Exiting Couch Potato'; var config = require('dotenv').config(); var cp = new CouchPotato({ @@ -124,11 +125,7 @@ function handleNoIntent(req, resp) { } function handleCancelIntent(req, resp) { - resp.shouldEndSession(true).send(); -} - -function handleCancelIntent(req, resp) { - resp.say(HELP_RESPONSE).send(); + resp.say(CANCEL_RESPONSE).shouldEndSession(true).send(); } module.exports = {