{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/BotBuilder-V3/issues/62","repository_url":"https://api.github.com/repos/Microsoft/BotBuilder-V3","labels_url":"https://api.github.com/repos/Microsoft/BotBuilder-V3/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/BotBuilder-V3/issues/62/comments","events_url":"https://api.github.com/repos/Microsoft/BotBuilder-V3/issues/62/events","html_url":"https://github.com/Microsoft/BotBuilder-V3/issues/62","id":380802215,"node_id":"MDU6SXNzdWUzODA4MDIyMTU=","number":62,"title":"LUIS not recognizing dialogs stored in subfolders","user":{"login":"teamplumaa","id":19539590,"node_id":"MDQ6VXNlcjE5NTM5NTkw","avatar_url":"https://avatars3.githubusercontent.com/u/19539590?v=4","gravatar_id":"","url":"https://api.github.com/users/teamplumaa","html_url":"https://github.com/teamplumaa","followers_url":"https://api.github.com/users/teamplumaa/followers","following_url":"https://api.github.com/users/teamplumaa/following{/other_user}","gists_url":"https://api.github.com/users/teamplumaa/gists{/gist_id}","starred_url":"https://api.github.com/users/teamplumaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamplumaa/subscriptions","organizations_url":"https://api.github.com/users/teamplumaa/orgs","repos_url":"https://api.github.com/users/teamplumaa/repos","events_url":"https://api.github.com/users/teamplumaa/events{/privacy}","received_events_url":"https://api.github.com/users/teamplumaa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-14T17:16:08Z","updated_at":"2018-11-14T18:46:37Z","closed_at":"2018-11-14T18:46:37Z","author_association":"NONE","body":"Microsoft BotbuilderSDK: 3.15.0\r\nLanguage: NodeJs\r\n\r\nI am trying to initialize my dialogs with LUIS but it's not working. \r\n\r\nI have each dialog in different subfolders. I am using bot.library and require to call the subfolders in **app.js**.  The dialogs work when I use session.beginDialog to trigger them as in the example below.\r\n\r\n\r\n <!-- begin snippet: js hide: false console: true babel: false -->\r\n\r\n<!-- language: lang-html -->\r\n   var bot = new builder.UniversalBot(connector, function (session) {\r\n         session.beginDialog('hello:Hello')\r\n    }).set('storage', cosmosStorage);\r\n<!-- end snippet -->\r\n\r\n\r\nBut the conversations are not initiated when Luis is included. Each conversation has the correct LUIS calls/integrations.\r\n\r\n\r\nHere is the full source code:\r\n\r\n\r\n<!-- begin snippet: js hide: false console: true babel: false -->\r\n\r\n<!-- language: lang-html -->\r\n\r\n    require('dotenv').config();\r\n    const restify = require('restify');\r\n\r\n    const builder = require('botbuilder');\r\n\r\n    var fs = require('fs');\r\n\r\n    var clients = require('restify-clients');\r\n\r\n    var azure = require('botbuilder-azure');\r\n\r\n    var listenPort = process.env.port || process.env.PORT || 3978;\r\n\r\n    var server = restify.createServer()\r\n\r\n    server.listen(listenPort, '::', () => {\r\n      console.log(`ssssTestt`)\r\n    });\r\n\r\n\r\n    var connector = new builder.ChatConnector({\r\n        appId: process.env.MICROSOFT_APP_ID,\r\n        appPassword: process.env.MICROSOFT_APP_PASSWORD\r\n    });\r\n\r\n\r\n    var bot = new builder.UniversalBot(connector, function (session) {\r\n        session.endDialog(`I'm sorry, I did not understand '${session.message.text}'.\\nType 'help' to know more about me :)`)\r\n    }).set('storage', cosmosStorage);\r\n\r\n\r\n    var luisRL = new builder.LuisRecognizer(process.env.LUIS_MODEL_URL).onEnabled(function (context, callback) {\r\n      var enabled = context.dialogStack().length === 0\r\n      callback(null, enabled)\r\n    });\r\n\r\n\r\n    var intents = new builder.IntentDialog({ recognizers: [luisRL] });\r\n    bot.recognizer(intents);\r\n\r\n\r\n    server.post('/api/messages', connector.listen());\r\n\r\n    bot.on('conversationUpdate', function (message) {\r\n      if (message.membersAdded) {\r\n\r\n        greetings = 'welcome to Joey's Pizza?'\r\n\r\n        message.membersAdded.forEach(function (identity) {\r\n          if (identity.id === message.address.bot.id) {\r\n            bot.send(new builder.Message()\r\n              .address(message.address)\r\n              .text(greetings)\r\n            )\r\n          }\r\n        })\r\n      }\r\n    });\r\n\r\n    bot.library(require('./dialogs/reservations').createLibrary());\r\n    bot.library(require('./dialogs/order').createLibrary());\r\n    bot.library(require('./dialogs/cancellations').createLibrary());\r\n\r\n<!-- end snippet -->\r\n\r\n\r\n"}}
{"actor":{"display_login":"EricDahlvang"}}