-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.js.default
executable file
·74 lines (60 loc) · 1.6 KB
/
config.js.default
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/**
* @file Main programme - SparkBotAdv
* @author guillain (guillain@gmail.com)
* @license GPL-3.0
*/
var config = {};
config.name = 'sparkBotAdv';
config.debug = '1';
// Flint
config.address = '0.0.0.0';
config.port = '8080';
// Redis
config.db = {};
config.db.host = '127.0.0.1';
// Spark
config.sparkbot = 'SparkBotAdv@sparkbot.io';
config.webhookUrl = 'http://'+config.address+':'+config.port+'/flint';
config.token = '';
// BigData connector
config.bigdata = {};
config.bigdata.enable = true;
config.bigdata.type = 'tcp';
config.bigdata.host = '';
config.bigdata.port = '5044';
config.bigdata.auth = 'username:password';
// Vote
config.vote = {};
config.vote.storage = 'vote';
config.vote.message = 'Should we try the sushi place for lunch? \n';
config.vote.message += '- yes \n';
config.vote.message += '- no \n';
config.vote.message += '- later \n\n';
// Service desk
config.SD = {};
config.SD.storage = 'KM';
config.SD.csv = '/var/www/sparkbot/conf/km.csv';
//config.SD.csv = '/var/www/sparkbot/conf/km.short.csv';
config.SD.searchlimit = '10';
// Google search
config.search = {};
config.search.google_cse_key = '';
config.search.google_api_key = '';
// default search param
config.search.query = '';
config.search.host = 'www.google.com';
config.search.limit = '10';
config.search.lang = 'en';
config.search.age = 'd1';
config.search.image = '0';
config.search.video = '0';
config.search.hub = '0';
config.search.servicedesk = '0';
// Reporter
config.reporter = {};
config.reporter.tmpfile = '/tmp/reporter.csv';
// Alert
config.alert = {};
config.alert.code = '1234';
// export config
module.exports = config;