Skip to content
Permalink
Browse files

Add support for IRC server options (#150)

  • Loading branch information...
gnikandrov authored and Tjzabel committed Jun 12, 2019
1 parent 08c4e20 commit 43f26791a865d04a940000b98fadf7f7ca533cc9
Showing with 9 additions and 0 deletions.
  1. +3 −0 config.js
  2. +3 −0 env.example
  3. +3 −0 teleirc.js
@@ -5,6 +5,9 @@ let settings = {
process.env.IRC_BLACKLIST.split(",") : [],
irc: {
server: process.env.IRC_SERVER || "irc.freenode.net",
port: process.env.IRC_PORT || 6667,
tlsAllowSelfSigned: process.env.IRC_CERT_ALLOW_SELFSIGNED === "true" || false,
tlsAllowCertExpired: process.env.IRC_CERT_ALLOW_EXPIRED === "true" || false,
channel: process.env.IRC_CHANNEL || "",
botName: process.env.IRC_BOT_NAME || "teleirc",
sendStickerEmoji: process.env.IRC_SEND_STICKER_EMOJI === "true" || true,
@@ -14,6 +14,9 @@ IRC_SEND_DOCUMENT=false
IRC_PREFIX="<"
IRC_SUFFIX=">"
IRC_SERVER=chat.freenode.net
IRC_PORT=6667
IRC_CERT_ALLOW_SELFSIGNED=false
IRC_CERT_ALLOW_EXPIRED=false
IRC_NICKSERV_SERVICE=NickServ
IRC_NICKSERV_PASS=""
IRC_EDITED_PREFIX="[EDIT] "
@@ -18,6 +18,9 @@ teleIrc.initStage2_telegramConfigValidation();
// Create the IRC bot side with the settings specified in config object above
console.log("Starting up bot on IRC...");
let ircbot = new irc.Client(config.irc.server, config.irc.botName, {
port: config.irc.port,
selfSigned: config.irc.tlsAllowSelfSigned,
certExpired: config.irc.tlsAllowCertExpired,
channels: [config.irc.channel],
debug: false,
username: config.irc.botName,

0 comments on commit 43f2679

Please sign in to comment.
You can’t perform that action at this time.