You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@botbuildercommunity/adapter-console

Package Overview
Dependencies
Maintainers
4
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@botbuildercommunity/adapter-console

Console adapter for the Bot Framework SDK v4.

1.0.1
latest
Source
npmnpm
Version published
Maintainers
4
Created
Source

Console Adapter

The console adapter lets you create a chatbot that works from the command line. This was built-in functionality in SDK v3, but was absent from the SDK v4 library. The console bot is limited in which functionality it can implement from the base adapter.

Installation

To install:

npm install @botbuildercommunity/adapter-console --save

Usage

Include it in your bot:

import { ConsoleAdapter } from "@botbuildercommunity/adapter-console";

Create the adapter:

const adapter: ConsoleAdapter = new ConsoleAdapter();

Listen for activities:

adapter.processActivity(async (context: TurnContext) => {
    ...
});

From there you can pass the context to your bot logic's onTurn() method.

Keywords

chatbots

FAQs

Package last updated on 26 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts