Last active
March 5, 2018 22:25
-
-
Save mpicciolli/3f511ff82fe13ac8f8da956305a96d8a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component } from '@nestjs/common'; | |
import { UniversalBot } from 'botbuilder/lib/botbuilder'; | |
import * as builder from 'botbuilder'; | |
import { BotConnector } from './common.bot.connector'; | |
@Component() | |
export class Botbuilder { | |
bot: UniversalBot; | |
constructor(private readonly botConnector: BotConnector) { | |
this.bot = new builder.UniversalBot(botConnector.connector, [function (session) { | |
session.send("You said: %s", session.message.text); | |
}]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment