UNPKG

544 BJavaScriptView Raw
1let superscript = require('.').default;
2
3superscript.setup(
4 {
5 mongoURI: 'mongodb://localhost/superscripttest2',
6 factSystem: {
7 clean: false
8 },
9 logPath: null,
10 pluginsPath: null,
11 importFile:
12 '/Users/mukaiu/code/livehelperchat.io/superbrain/app/engine/data.json'
13 },
14 (err, bot) => {
15 if (err) console.error(1, err);
16 else {
17 bot.directReply('random2', 'uid', 'new conversation', (err, reply) => {
18 if (err) console.error(2, err);
19 else console.log(3, reply);
20 });
21 }
22 }
23);