This repository has been archived by the owner on Jun 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathconfig-sample.js
345 lines (301 loc) · 8.51 KB
/
config-sample.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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
const Redis = require("ioredis");
const mysql = require('promise-mysql');
const useReplica = true;
var pool;
var readPool;
var redis;
const config = {
production: {
getRedis: function () {
if (redis) return redis;
redis = new Redis({
port: 1234, // Redis port
host: "127.0.0.1", // Redis host
family: 4, // 4 (IPv4) or 6 (IPv6)
password: "",
db: 1234, // 1, 2, 3, 4
});
return redis;
},
getPool: function () {
if (pool) return pool;
pool = mysql.createPool({
connectionLimit : 10,
host : '',
user : '',
password : '',
database : '',
charset: "utf8mb4"
});
return pool;
},
getReadPool: function () {
if (readPool) return readPool;
if (useReplica) {
readPool = mysql.createPool({
connectionLimit : 10,
host : '',
user : '',
password : '',
database : '',
charset: "utf8mb4"
});
}
else {
readPool = pool;
}
return readPool;
},
getStagingPool: function () {
if (pool) return pool;
pool = mysql.createPool({
connectionLimit : 10,
host : '',
user : '',
password : '',
database : '',
charset: "utf8mb4"
});
return pool;
},
redisExpiry: 2592000, // item
lodestoneRedisExpiry: 600,
// Discord User ID : Name
adminIDs: {
'12345': 'bokitoki'
},
prefix: "!",
language: "en",
languageOptions: ['en', 'jp', 'de', 'fr'],
statuses: [
'!kweh prefix',
'!kweh language',
'!kweh autodelete',
'!kweh channel',
'!register',
'!me',
'!profile',
'!glam',
'!fflogs',
'!mb',
'!tt',
'!news',
'!fashion',
'!item',
'!maint',
'!timers',
'!ec',
'!donate',
'!help',
'!mount',
'!minion',
'!title',
'!barding',
'!emote'
],
commands: [
'kweh',
'language',
'register',
'iam',
'me',
'whoami',
'profile',
'whois',
'glam',
'glamour',
'fflogs',
'logs',
'fflogs',
'parses',
'mb',
'market',
'marketboard',
'tt',
'ttcollection',
'cards',
'news',
'lodestone',
'fr',
'fashion',
'item',
'timer',
'timers',
'reset',
'maint',
'donate',
'help',
'ping',
// eorzea collection
'eorzeacollection',
'ec',
// housing snap
'housingsnap',
'hs',
// xivcollect
'mount',
'minion',
'title',
'emote',
'barding'
],
// Bot Discord User ID
botID: '12345',
devBotID: '12345',
// Top.gg token - https://top.gg/bot/725551243551834112
topGGtoken: '',
throttleLimit: 5, // messages limit every 5s
userPromptsTimeout: 20000,
itemSearchLimit: 50,
// Update manually
totalMinions: 442, // https://ffxivcollect.com/api/minions
totalMounts: 219, // https://ffxivcollect.com/api/mounts
defaultEmbedColor: '#F4B400',
infoEmbedColor: "#4285F4",
successEmbedColor: "#0F9D58",
errorEmbedColor: '#DB4437',
profileImgPath: '/profiles/images/',
websiteLink: 'https://kwehbot.xyz',
websiteCommandLink: 'https://kwehbot.xyz/commands',
donationLink: 'https://www.patreon.com/kwehbot',
fashionReportAuthorAvatar: 'https://styles.redditmedia.com/t5_c3dzb/styles/profileIcon_59d8xof3jv721.png?width=256&height=256&crop=256:256,smart&s=73f8edb92d50241c184123dd03dda1d5a8e1259b',
fashionReportAuthorName: 'Miss Kaiyoko Star',
fashionReportAuthorLink: 'https://www.reddit.com/user/kaiyoko',
fashionReportRSS: 'https://www.reddit.com/user/kaiyoko/submitted/.rss',
appName: 'Kweh',
appLogo: 'https://cdn.discordapp.com/app-icons/725551243551834112/c0e31ba9732567b2c7ea5eb4bddfc370.png',
appSuccessImg: 'https://cdn.discordapp.com/app-icons/725551243551834112/c0e31ba9732567b2c7ea5eb4bddfc370.png',
appErrorImg: 'https://cdn.discordapp.com/app-icons/515492989238378497/b73013e1749dccea4ea95585c1918e90.png',
maintenanceImg: 'https://img.icons8.com/fluent/48/000000/maintenance.png',
timerImg: 'https://img.icons8.com/officel/16/000000/hourglass-sand-bottom.png',
// Official Discord Bot Tokens
discordBotToken: '12345',
devBotToken: '12345',
// XIV API
xivApiToken: '12345',
xivApiBaseURL: 'https://xivapi.com/',
xivApiLogo: 'https://xivapi.com/favicon.png',
eorzeaCollectionLogo: 'https://ffxiv.eorzeacollection.com/resources/favicon/apple-touch-icon.png',
housingSnapLogo: 'https://i.imgur.com/RZVYuaJ.png',
universalisApiBaseURL: 'https://universalis.app/api/',
universalisMarketBaseURL: 'https://universalis.app/market/',
universalisLogo: 'https://universalis.app/favicon.png',
// FFLogs
fflogsLogo: 'https://dmszsuqyoe6y6.cloudfront.net/img/ff/favicon.png',
fflogsToken: '12345',
fflogsApiBaseURL: 'https://www.fflogs.com/v1/',
fflogsBaseURL: 'https://www.fflogs.com/',
fflogsOAuthURL: 'https://www.fflogs.com/oauth/token',
fflogsGQLEndpoint: 'https://www.fflogs.com/api/v2/client',
fflogsClientID: '12345',
fflogsClientSecret: '12345',
lodestoneImg: 'https://img.finalfantasyxiv.com/lds/h/0/U2uGfVX4GdZgU1jASO0m9h_xLg.png',
lodestoneURL: 'https://na.finalfantasyxiv.com/lodestone/character/',
lodestoneURL_JP: 'https://jp.finalfantasyxiv.com/lodestone/character/',
lodestoneURL_DE: 'https://de.finalfantasyxiv.com/lodestone/character/',
lodestoneURL_FR: 'https://fr.finalfantasyxiv.com/lodestone/character/',
lodestoneApiURL: 'http://na.lodestonenews.com/news/all',
lodestoneApiURL_EU: 'http://lodestonenews.com/news/all?locale=eu',
lodestoneApiURL_JP: 'http://lodestonenews.com/news/all?locale=jp',
lodestoneApiURL_DE: 'http://lodestonenews.com/news/all?locale=de',
lodestoneApiURL_FR: 'http://lodestonenews.com/news/all?locale=fr',
xivcollectApiBaseURL: 'https://ffxivcollect.com/api/',
ffttBaseURL: 'https://triad.raelys.com/',
ffttApiBaseURL: 'https://triad.raelys.com/api/',
ffttLogo: 'https://triad.raelys.com/images/logo.png',
teamcraftBaseURL: 'http://ffxivteamcraft.com/db/',
newsCategories: [
'topics',
'notices',
'maintenance',
'updates',
'status',
'developers'
],
dcRegions: {
"JP": [
'Elemental',
'Gaia',
'Mana'
],
"EU": [
'Chaos',
'Light'
],
"NA": [
'Aether',
'Primal',
'Crystal'
],
"AU": [
'Materia'
]
},
races: {
'1': 'Hyur',
'2': 'Elezen',
'3': 'Lalafell',
'4': 'Miqo\'te',
'5': 'Roegadyn',
'6': 'Au Ra',
'7': 'Hrothgar',
'8': 'Viera',
},
genders: {
'1': 'Male',
'2': 'Female',
},
grand_companies: {
'1': 'The Maelstrom',
'2': 'Order of the Twin Adder',
'3': 'The Immortal Flames',
},
// https://github.com/xivapi/ffxiv-datamining/blob/master/csv/ClassJob.csv
classes: {
// DOW
'1' : 'Gladiator',
'2' : 'Pugilist',
'3' : 'Marauder',
'4' : 'Lancer',
'5' : 'Archer',
'6' : 'Conjurer',
'7' : 'Thaumaturge',
'26': 'Arcanist',
'29': 'Rogue',
'19': 'Paladin',
'21': 'Warrior',
'32': 'Dark Knight',
'37': 'Gunbreaker',
'20': 'Monk',
'22': 'Dragoon',
'30': 'Ninja',
'34': 'Samurai',
'39': 'Reaper',
'24': 'White Mage',
'28': 'Scholar',
'33': 'Astrologian',
'40': 'Sage',
'23': 'Bard',
'31': 'Machinist',
'38': 'Dancer',
'25': 'Black Mage',
'27': 'Summoner',
'35': 'Red Mage',
'36': 'Blue Mage',
// DOH
'8' : 'Carpenter',
'9' : 'Blacksmith',
'10': 'Armorer',
'11': 'Goldsmith',
'12': 'Leatherworker',
'13': 'Weaver',
'14': 'Alchemist',
'15': 'Culinarian',
// DOL
'16': 'Miner',
'17': 'Botanist',
'18': 'Fisher',
},
},
};
module.exports = config;