-
Notifications
You must be signed in to change notification settings - Fork 32
/
config.js
19 lines (19 loc) · 966 Bytes
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const fs = require("fs");
if (fs.existsSync("files")) {
module.exports = JSON.parse(fs.readFileSync("files/config.json"));
} else {
module.exports = {
"d_token": process.env.d_token,
"d_gateway": "wss://gateway.discord.gg/?encoding=etf&v=9&compress=zlib-stream",
"d_webhook": process.env.d_webhook,
"d_err_webhook": process.env.d_err_webhook || process.env.d_webhook,
"read_messages_on_redeem_account": process.env.read_messages_on_redeem_account.toLowerCase() == "true",
"debug_webhook": process.env.debug_webhook,
"use_multiple_tokens": process.env.use_multiple_tokens.toLowerCase() == "true",
"tokens": process.env.tokens,
"show_messages": process.env.show_messages.toLowerCase() == "true",
"cache_codes": true,
"improve_latency": typeof process.env.improve_latency != "undefined",
"force_webserver": typeof process.env.force_webserver != "undefined"
}
}