Socket
Socket
Sign inDemoInstall

@botbuildercommunity/adapters

Package Overview
Dependencies
102
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

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.


Version published
Weekly downloads
8
increased by700%
Maintainers
3
Install size
42.8 MB
Created
Weekly downloads
 

Readme

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

Last updated on 26 Jul 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc