Botkit Utterance Registry
This library is meant to help assist with registering utterances with botkit across multiple platforms.
Installation
$ npm install --save botkit-utterance-registry
Usage
// utterances/hello.utt.jsconst events = 'message_received';const platforms = 'alexa' 'slack' 'fb';const phrases = 'hello' 'world';const perform = { bot;}; platforms phrases perform events; // utterances/index.js;; ; // main.js;;;; ;;;
Functions
register
registers an utterance with the registry
; ;
addUtteranceToPlatform
Adds all utterances to a given platforms controller
;;;; ;;;
getUtteranceForPlatform
Returns all utterances registered to a given platform
; const utterances =