-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
executable file
·31 lines (27 loc) · 810 Bytes
/
index.js
File metadata and controls
executable file
·31 lines (27 loc) · 810 Bytes
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
//#region NODE_PATH
process.env["NODE_PATH"] = process.cwd();
require("module").Module._initPaths();
//#endregion
const { Actionary } = require("./src/services/actionary");
const ACTIONS = [
"com.devoxx.easter",
"com.devoxx.topic.list",
"com.devoxx.topic.select",
"com.devoxx.talk.details",
"com.devoxx.talk.find_by_id",
"com.devoxx.talk.find_by_tag",
"com.devoxx.talk.find_by_topic",
"com.devoxx.talk.find_by_topic.next",
"com.devoxx.talk.find_by_topic.more",
"com.devoxx.speaker.bio",
"com.devoxx.speaker.talk",
"com.devoxx.speaker.by_tag",
"com.devoxx.speaker.by_room"
];
exports.agent = function(request, response) {
console.log("starting the agent...");
new Actionary({ request, response })
.use(Actionary.sdk.DialogflowApp)
.setActions(ACTIONS)
.start();
};