This repository has been archived by the owner on Jan 3, 2020. It is now read-only.
forked from RITlug/teleirc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
34 lines (33 loc) · 1.46 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
let settings = {
token: process.env.TELEIRC_TOKEN ||
"000000000:AAAAAAaAAa2AaAAaoAAAA-a_aaAAaAaaaAA",
ircBlacklist: process.env.IRC_BLACKLIST ?
process.env.IRC_BLACKLIST.split(",") : [],
irc: {
server: process.env.IRC_SERVER || "irc.freenode.net",
channel: process.env.IRC_CHANNEL || "",
botName: process.env.IRC_BOT_NAME || "teleirc",
sendStickerEmoji: process.env.IRC_SEND_STICKER_EMOJI === "true" || true,
prefix: process.env.IRC_PREFIX || "<",
suffix: process.env.IRC_SUFFIX || ">",
showJoinMessage: process.env.IRC_SHOW_JOIN_MESSAGE === "true" || true,
showLeaveMessage: process.env.IRC_SHOW_LEAVE_MESSAGE === "true" || true,
nickservPassword: process.env.IRC_NICKSERV_PASS || "",
nickservService: process.env.IRC_NICKSERV_SERVICE || "",
editedPrefix: process.env.IRC_EDITED_PREFIX || "[EDIT] ",
},
tg: {
chatId: process.env.TELEGRAM_CHAT_ID || "-000000000",
showJoinMessage: process.env.SHOW_JOIN_MESSAGE === "true" || false,
showActionMessage: process.env.SHOW_ACTION_MESSAGE === "true" || true,
showLeaveMessage: process.env.SHOW_LEAVE_MESSAGE === "true" || false,
showKickMessage: process.env.SHOW_KICK_MESSAGE === "true" || false,
maxMessagesPerMinute: Number(process.env.MAX_MESSAGES_PER_MINUTE) || 20,
},
imgur: {
useImgurForImageLinks: process.env.USE_IMGUR_FOR_IMAGES === "true" ||
false,
imgurClientId: process.env.IMGUR_CLIENT_ID || "12345",
}
}
module.exports = settings;