summaryrefslogtreecommitdiff
path: root/lib/panda.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-11-15 13:40:06 -0500
committerJules Laplace <jules@okfoc.us>2016-11-15 13:40:06 -0500
commit94ade9321a971e81c383e14186bf4c776bd304fc (patch)
treead37ec8434e302388b8694035678930dcf58911b /lib/panda.js
parentd2a3fd6856265751b499c5f8921f450501b879c5 (diff)
parse links
Diffstat (limited to 'lib/panda.js')
-rw-r--r--lib/panda.js7
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