import * as restify from 'restify';
import * as builder from 'botbuilder';
import * as os from 'os';

const connector = new builder.ChatConnector({
    appId: process.env.MICROSOFT_APP_ID,
    appPassword: process.env.MICROSOFT_APP_PASSWORD
});

const server = restify.createServer();
server.post('/api/messages', connector.listen());
server.get('/healthz', (request, response) => {
    response.send(200);
})

server.listen(3978, () => console.log(`${server.name} listening to ${server.url}`));

var bot = new builder.UniversalBot(connector, (session: builder.Session) => {
    session.send(`Kubernetes is awesome! I am ${os.hostname}. You said: ${session.message.text}`)
});

var recognizer = new builder.LuisRecognizer(process.env.LUIS_URI);
bot.recognizer(recognizer);

bot.dialog('GetPods', function (session) {
    session.endDialog('You are trying to get pods');
}).triggerAction({
    matches: 'GetPods'
});

bot.dialog('GetDeployments', function (session) {
    session.endDialog('You are trying to get deployments');
}).triggerAction({
    matches: 'GetDeployments'
});

import * as restify from 'restify';
import * as builder from 'botbuilder';
import * as os from 'os';

const connector = new builder.ChatConnector({
    appId: process.env.MICROSOFT_APP_ID,
    appPassword: process.env.MICROSOFT_APP_PASSWORD
});

const server = restify.createServer();
server.post('/api/messages', connector.listen());
server.get('/healthz', (request, response) => {
    response.send(200);
})

server.listen(3978, () => console.log(`${server.name} listening to ${server.url}`));

var bot = new builder.UniversalBot(connector, (session: builder.Session) => {
    session.send(`Kubernetes is awesome! I am ${os.hostname}. You said: ${session.message.text}`)
});

var recognizer = new builder.LuisRecognizer(process.env.LUIS_URI);
bot.recognizer(recognizer);

bot.dialog('GetContainers', function (session) {
    session.say('You are trying to get containers');
    session.endDialog();
}).triggerAction({
    matches: 'GetContainers'
});

bot.dialog('GetDeployments', function (session) {
    session.endDialog('You are trying to get deployments');
}).triggerAction({
    matches: 'GetDeployments'
});

Change ambiguous calls to Cortana
Change ambiguous calls to Cortana

Signed-off-by: radu-matei <5658ddc86f190a3ca12b15ca39a24e2d214bc7d0@gmail.com>
