Skip to content

Commit

Permalink
Fixed Wolfram Alpha 'Research' Intent
Browse files Browse the repository at this point in the history
  • Loading branch information
arch1v1st committed Apr 7, 2016
1 parent 72ae6f3 commit 4c6743d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -41,7 +41,7 @@ app.sessionEnded(function(request,response) {
app.messages.NO_INTENT_FOUND = "I am uncertain what you mean. Kindly rephrase...";

// Pre-execution security checks - ensure each requests applicationId / userId / password match configured values
app.pre = function(request,response,type) {
app.pre = function(request,response,type) {
// Extract values from various levels of the nested request object
var address = request.data.remoteAddress;
var password = request.data.password;
Expand Down Expand Up @@ -420,7 +420,7 @@ app.intent('Research', {
if (err) {
replyWith('I could not quickly determine an answer to your question', response);
} else if (msg) {
response.say(msg, response);
replyWith(msg, response);
}
});
return false;
Expand Down

0 comments on commit 4c6743d

Please sign in to comment.