forked from VoxaAI/voxa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
45 lines (37 loc) · 1.22 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/**
* Alexa State Machine
*
* Copyright (c) 2016 Rain Agency.
* Licensed under the MIT license.
*/
/*
* Alexa state machine version
*/
'use strict';
const packageInfo = require('./package.json');
const StateMachineSkill = require('./lib/StateMachineSkill');
const Reply = require('./lib/Reply');
const DefaultRenderer = require('./lib/renderers/DefaultRenderer');
const I18NRenderer = require('./lib/renderers/I18NRenderer');
/**
* Plugins
*/
const badResponseReprompt = require('./lib/plugins/reprompt-on-bad-response');
const replaceIntent = require('./lib/plugins/replace-intent');
const stateFlow = require('./lib/plugins/state-flow');
const cloudWatch = require('./lib/plugins/cloud-watch');
const autoLoad = require('./lib/plugins/auto-load');
module.exports = StateMachineSkill;
module.exports.version = packageInfo.version;
module.exports.Reply = Reply;
module.exports.replyWith = (reply, to) => ({ reply, to });
module.exports.replyWithAudioDirectives = (reply, to, request, data, directives) => ({ reply, to, directives });
module.exports.I18NRenderer = I18NRenderer;
module.exports.DefaultRenderer = DefaultRenderer;
module.exports.plugins = {
badResponseReprompt,
replaceIntent,
stateFlow,
cloudWatch,
autoLoad,
};