Last active
March 5, 2018 22:09
-
-
Save mpicciolli/80520abcab49ae69783e3ed153d37338 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 * 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