@botbuildercommunity/middleware-activity-type
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Activity Type Middleware

This middleware package is a Node.JS port of the C# Activity Type middleware component from the Bot Builder Community. It intercepts messages based on the activity type so that you can automatically handle certain types outside of the standard dialog flow.

Installing

npm install @botbuildercommunity/middleware-activity-type --save

Usage

import { HandleActivityType } from '@botbuildercommunity/middleware-activity-type';

adapter.use(new HandleActivityType(ActivityTypes.Message, async (context, next) => {
    await context.sendActivity('Hello, middleware!');
}));

Package Sidebar

Install

npm i @botbuildercommunity/middleware-activity-type

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

8.09 kB

Total Files

14

Last publish

Collaborators

  • jamesemann
  • cloudguy_pro
  • imick