from server

This commit is contained in:
Bilal
2018-01-05 22:28:55 +00:00
3 changed files with 14 additions and 2 deletions

View File

@@ -38,11 +38,13 @@ alexaApp.express({
// now POST calls to /test in express will be handled by the app.request() function
// from here on you can setup any other express routes or middlewares as normal
// from here on you can setup any other express routes or middlewares as nor
app.set("view engine", "ejs");
alexaApp.launch(function(request, response) {
console.log("Alexa launch");
console.log(request);
const skill = db.collection('skill_list').findOne({_id: ObjectID(skillDbID)}, (err,result)=>{
if (err){
response.say("I could not find desired skill")