Socket
Socket
Sign inDemoInstall

botbuilder-dialog-loader

Package Overview
Dependencies
112
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    botbuilder-dialog-loader

A Library that helps to autload Microsoft Bot Framework dialogs


Version published
Maintainers
1
Created

Readme

Source

botbuilder-dialog-loader

A Library that helps to autload Microsoft Bot Framework dialogs. Autoloads dialogs from provided folder, able to pass custom arguments for dialogs. It is supposed that every javascript file in the folder will expose only function with bot as first argument. Recommendation: match dialog id's with the dialog folder structure.

Please do not hesitate to ask or publish your proposals.

Loader arguments

So require('botbuilder-dialog-loader') will return a function that requires next arguments: . bot - a UniversalBot instance; . basePath - a path to dialogs folder; . config - (optional) could be a function or an object. . If function passed, than the Library will call it with every loaded javascript module. Callback arguments: relative filename, exports section of the loaded module; . If an object passed, than the Library will interprete keys in the object as names of folders and files. Attribute values will be passed as an arguments to loaded files, in case if filename (with directory name) matches to a key i config object. Example of such object: javascript { "folderA" : { "folderB" : { "some_dialogs" : [arg1, ..., argN] // A } }, "welcome" : ["Hello", "Wolrd!"] }

Usage Example

Please take a look on example folder in repository.

Installation

    npm install --save botbuilder-dialog-loader

Keywords

FAQs

Last updated on 03 Nov 2017

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