1.0.1 • Published 5 years ago

botbuilder-consoleadapter v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Introduction

Bot Builder is a library for building conversational AI chat bots using Microsoft Bot Builder. It allows you to create a really type developer loop where you chat with your bot in a console window as it's being developed and before you add a REST API that allows you to interface with the emulator and a Bot Service.

Getting Started

To install this package, you simply use the typical...

npm install botbuilder-consoleadapter

Then, to write an echo bot with minimal code, you can use...

import { ConsoleAdapter } from "botbuilder-consoleadapter";

const adapter = new ConsoleAdapter();
adapter.listen(async (context) => {
    await context.sendActivity(context.activity.text);
})

Easy!