diff options
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 |
