Skip to content

Instantly share code, notes, and snippets.

@mpicciolli
Last active March 5, 2018 22:09
Show Gist options
  • Save mpicciolli/80520abcab49ae69783e3ed153d37338 to your computer and use it in GitHub Desktop.
Save mpicciolli/80520abcab49ae69783e3ed153d37338 to your computer and use it in GitHub Desktop.
import { Component } from '@nestjs/common';
import * as builder from 'botbuilder';
import { Botbuilder } from '../../common/common.bot.builder';
@Component()
export class HelpDialog {
private dialogId: string = 'help';
constructor(private readonly botBuilder: Botbuilder) {
botBuilder.bot.dialog(this.dialogId, this.dialog).triggerAction({ matches: /^help/i });
}
dialog(session, results, next): void {
session.send("I'm a simple echo bot.");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment