Created
March 15, 2018 16:48
-
-
Save codefoster/0abedd02fc0aff2063a3bc4508503596 to your computer and use it in GitHub Desktop.
Bot Framework v4 m2 Echo Bot with Console Adapter
This file contains 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 { ConsoleAdapter } from 'botbuilder'; | |
new ConsoleAdapter().listen(ctx => { | |
if (ctx.request.type === 'message') | |
ctx.sendActivity(ctx.request.text); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment