diff options
| author | Jules Laplace <jules@okfoc.us> | 2016-11-15 13:40:06 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2016-11-15 13:40:06 -0500 |
| commit | 94ade9321a971e81c383e14186bf4c776bd304fc (patch) | |
| tree | ad37ec8434e302388b8694035678930dcf58911b /lib/panda.js | |
| parent | d2a3fd6856265751b499c5f8921f450501b879c5 (diff) | |
parse links
Diffstat (limited to 'lib/panda.js')
| -rw-r--r-- | lib/panda.js | 7 |
1 files changed, 6 insertions, 1 deletions
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 |
