Repository navigation
Expand file tree
/
Copy pathconfig.js
More file actions
68 lines (60 loc) · 1.66 KB
/
Copy pathconfig.js
File metadata and controls
68 lines (60 loc) · 1.66 KB
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
// --- WIKI CONFIGURATION ---
const BOT_NAME = "fih";
const WIKIS = {
"en": {
name: "DOORS Wiki",
baseUrl: "https://doorsgame.wiki",
apiEndpoint: "https://doorsgame.wiki/w/api.php",
articlePath: "https://doorsgame.wiki/",
prefix: "en",
emoji: "1557256172782878780",
default: true
},
"zh": {
name: "Chinese DOORS Wiki",
baseUrl: "https://zh.doorsgame.wiki",
apiEndpoint: "https://zh.doorsgame.wiki/w/api.php",
articlePath: "https://zh.doorsgame.wiki/",
prefix: "zh",
emoji: "1557256172782878780"
}
};
// Map a channel or category ID to a wiki.
const WIKI_MAP = {
"1018420502286581815": "en"
};
// Enable or disable slash commands. Disabled commands are not registered with Discord.
const COMMANDS = {
speedrun: false,
contribs: false,
wiki: true,
parse: true,
user: true,
random: true,
};
const EMOJIS = {
contribs: "1557256374881095711"
};
const WEB_SERVER = true;
const STATUS_INTERVAL_MS = 5 * 60 * 1000;
const PAGE_CACHE_MS = 30 * 60 * 1000;
// --- DISCORD STATUSES ---
const STATUS_OPTIONS = [
{ type: 4, text: "just send [[a page]] or {{a page}}!" },
{ type: 4, text: "doorsgame.wiki" },
{ type: 0, text: "DOORS" },
{ type: 5, text: "DOORS" },
{ type: 4, text: "edit your message and my embed will too!" },
{ type: 4, text: "react with :wastebasket: on my messages & i'll delete!" },
];
module.exports = {
BOT_NAME,
WIKIS,
WIKI_MAP: typeof WIKI_MAP !== "undefined" ? WIKI_MAP : undefined,
COMMANDS,
EMOJIS,
WEB_SERVER,
STATUS_INTERVAL_MS,
PAGE_CACHE_MS,
STATUS_OPTIONS
};