Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@botbuildercommunity/adapters

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@botbuildercommunity/adapters

A collection of adapters for use with the Bot Framework, in order to handle different deployment and integration scenarios.

  • 0.2.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
3
Weekly downloads
 
Created
Source

Adapters

This library contains additional adapters to use with the Microsoft Bot Framework.

Installation

To install:

npm install @botbuildercommunity/adapters --save

Usage

Each adapter can be used in much the same way, as its structure is inherited from the base adapter in the Bot Framework.

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.

Include it in your bot:

import { ConsoleAdapter } from "@botbuildercommunity/adapters";

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

FAQs

Package last updated on 20 Jul 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc