-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.js
More file actions
27 lines (23 loc) · 876 Bytes
/
test.js
File metadata and controls
27 lines (23 loc) · 876 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
// Core
const LowBot = require('./src/index');
// Classifier
const IntentClassification = require('eduir');
// Adapters
const alexa = require('lowbot-alexa');
const discord = require('lowbot-discord');
const slack = require('lowbot-slack');
const terminal = require('lowbot-terminal');
// Skills
const intents = require('./build/intents.json').intents;
const BasicSkill = require('./src/skills/basic/index');
// Bot instance
let botInstance = new LowBot()
.applyClassifier(IntentClassification, intents)
// .useAdapter(alexa)
.useAdapter(discord)
// .useAdapter(slack)
// .useAdapter(terminal)
.addSkill(BasicSkill) // Add our only skill at the moment
.enableDataService() // Allow skills to use the data service specified in .env
.enablePodService() // Allow skills to use the pod service specified in .env
.init(); // Initialise bot instance (wake up)