Skip to content

Instantly share code, notes, and snippets.

@mpicciolli
Last active March 5, 2018 22:25
Show Gist options
  • Save mpicciolli/3f511ff82fe13ac8f8da956305a96d8a to your computer and use it in GitHub Desktop.
Save mpicciolli/3f511ff82fe13ac8f8da956305a96d8a to your computer and use it in GitHub Desktop.
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