From 94ade9321a971e81c383e14186bf4c776bd304fc Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 15 Nov 2016 13:40:06 -0500 Subject: parse links --- lib/panda.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/panda.js') diff --git a/lib/panda.js b/lib/panda.js index 0a6b520..d7c2133 100644 --- a/lib/panda.js +++ b/lib/panda.js @@ -55,12 +55,15 @@ console.log("connecting..") client.addListener('registered', function (message) { console.log("..registered!") }) + client.addListener('motd', function (motd) { console.log("..got motd!") }) + client.addListener('error', function (err) { console.log("..error!", err) }) + client.addListener('join', function (channel, nick, message) { console.log("* " + nick + " joined " + channel) if (nick == 'panda' && channel == '#sally') { @@ -78,6 +81,9 @@ client.addListener('pm', function (nick, text, message) { current_task.timeout = setTimeout(task_over, TASK_DELAY) current_task.response.push(text) } + else { + console.log("*" + nick + "*", text) + } }) function task_over (){ @@ -90,5 +96,4 @@ function task_over (){ done() } - module.exports = panda -- cgit v1.2.3-70-g09d2