-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.js
152 lines (141 loc) · 4.22 KB
/
config.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
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
//
// Konfiguracia slack bota
//
module.exports = {
// Zdroje restauracii
sources: {
// identifikator restauracie
kusokstastia: {
// nazov restauracie
name: 'Kúsok Šťastia',
// url pre parsovanie obsahu denneho menu
web: 'https://www.bistro.sk/kusok-stastia/',
// druh parsra
parser: 'parserBistro',
// pomocne premenne cas a polozky parsovania
timestamp: 0,
items: []
},
kazacok: {
name: 'Kazačok Pub',
web: 'https://www.bistro.sk/kazacok-pub/',
parser: 'parserBistro',
timestamp: 0,
items: []
},
smrekovakoliba: {
name: 'Smreková Koliba',
web: 'https://restauracie.sme.sk/restauracia/smrekovakoliba_6066-zilina_2737/denne-menu',
parser: 'parserRestauracieSme',
timestamp: 0,
items: []
},
vulcano: {
name: 'Vulcano',
web: 'https://restauracie.sme.sk/restauracia/vulcano_4536-zilina_2737/denne-menu',
parser: 'parserRestauracieSme',
timestamp: 0,
items: []
},
milano: {
name: 'Pizza Milano',
web: 'https://www.bistro.sk/pizza-milano/',
parser: 'parserBistro',
timestamp: 0,
items: []
},
rmut: {
name: "Pivarska Bašta Rmut",
web: 'https://www.bistro.sk/pivarska-basta-rmut/',
parser: 'parserBistro',
timestamp: 0,
items: []
}
},
// ikonky pre hlasovanie (max 10)
"MAX_VOTE_EMOJIS": [
":one:",
":two:",
":three:",
":four:",
":five:",
":six:",
":seven:",
":eight:",
":nine:",
":keycap_ten:"
],
// otazky pre vyvolanie hlasovania (ankety)
"QUESTION_RECOMENDED": [
"(kam)",
"(ktore)(?!.*jedlo)",
"d(a|á)m?e.*?(obed)",
"(obed\?)"
],
// otazky pre pozdravenie bota
"GREETING_QUESTIONS": [
"[cč]a[uw]",
"[čc]us",
"ahoj",
"zdar"
],
// odpoved bota pre otazku pozdravenia (vybera sa nahodne)
"GREETING_ANSWERS": [
"Čau",
"Čus",
"Ahoj",
"Zdar",
"Čau. Ako sa máš?",
"Jé čau. Ani som ťa nevidel prichádzať.",
"Buď pozdravený, soud... ehm... kamarát."
],
// @todo "(aka je) ponuka pre kazacov?"
// @todo "(ake je) menu v kazacku"
// @todo "(aka je) ponuka pre kazacok"
// @todo "(ake je) denne menu pre kazacok"
"QUESTION_BY_RESTAURANT": [
"(?=[cč]o.*(?=hraj[úu]|maj[úu]|d[aá]vaj[úu]|varia|je.*na.*obed|je)).*[v|vo]*.*(k[uú]sku|kaza[cč]ku|vul[ck][aá]n[eo]|kolib[a|e]|kolibke|milan[eo]|rmute|ba[šs]te)"
],
// pole "vtipnych" gif obrazkov pre zobrazenie v ankete
"RESTAURANT_GIF": [
"http://media1.giphy.com/media/K5CULzwBU03HG/giphy.gif",
"https://media.giphy.com/media/10Z7cLDWDoct9u/giphy.gif",
"http://pa1.narvii.com/5859/faea324ea73a6a6e7a626361196682b4cba47c70_hq.gif",
"https://media.giphy.com/media/eSQKNSmg07dHq/giphy.gif",
"https://media.giphy.com/media/KTW9FIyPKTFcI/giphy.gif"
],
// denne menu konkretnej restauracie
// otazka typu "co je v kazacku" alebo "co maju vo vulkane"
"RESTAURANTS": [
{
"regex": "k[uú]sku|k[uú]sok",
"source": "kusokstastia"
},
{
"regex": "kaza[cč]ku|kaza[cč]ok[ pub]*]",
"source": "kazacok"
},
{
"regex": "kolibke|kolibe",
"source": "smrekovakoliba"
},
{
"regex": "vul[ck]an[eo]",
"source": "vulcano"
},
{
"regex": "milan[oe]",
"source": "milano"
},
{
"regex": "rmut|ba[šs]t[ea]",
"source": "rmut"
}
],
// otazka pre denne menu vsetkych restauracii
"QUESTION_RESTAURANTS": [
"([cč]o.*(hraj[úu]|maj[úu]|d[aá]vaj[úu]|je.*na.*obed))",
"ak[eé].*s[uú].*ponuky[\\?]*",
"ak[aá].*je.*ponuka"
]
};