summaryrefslogtreecommitdiff
path: root/lib/client.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/client.js')
-rw-r--r--lib/client.js28
1 files changed, 28 insertions, 0 deletions
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