From 4d6690ccc48266e7755829d32bf0440177d8c391 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 14 Nov 2016 11:49:32 -0500 Subject: initial stuff --- lib/client.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 lib/client.js (limited to 'lib/client.js') diff --git a/lib/client.js b/lib/client.js new file mode 100644 index 0000000..913731d --- /dev/null +++ b/lib/client.js @@ -0,0 +1,28 @@ + +var irc = require('node-irc') + +var client = irc.Client( irc.jollo.org, process.env.IRC_NICK, { + userName: process.env.IRC_NAME + realName: process.env.IRC_REALNAME, + port: 5000, + localAddress: null, + debug: false, + showErrors: false, + autoRejoin: false, + autoConnect: true, + channels: ["#sally","#afxchat"], + secure: true, + selfSigned: false, + certExpired: false, + floodProtection: false, + floodProtectionDelay: 1000, + sasl: false, + retryCount: 10, + retryDelay: 2000, + stripColors: false, + channelPrefixes: "&#", + messageSplit: 512, + encoding: '' +}) + +module.exports = client -- cgit v1.2.3-70-g09d2