From 97e5a8fc08970b8c623dcdf6378a45e09494359e Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Tue, 16 Aug 2011 19:59:11 +0100 Subject: [PATCH] Added some verbosity and made rquote better. --- run.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/run.js b/run.js index 60bf459..df495c7 100644 --- a/run.js +++ b/run.js @@ -31,6 +31,7 @@ instance.addListener('JOIN', function(data) { instance.addListener('KICK', function(data) { if(data.kickee == name) { instance.join(data.channel); + instance.say(data.channel, 'Thou shalt not kick ' + name); } else { instance.say(data.channel, data.kickee + '--'); } @@ -60,9 +61,11 @@ instance.addListener('PRIVMSG', function(data) { switch(params[0]) { case 'join': instance.join(params[1]); + instance.say(admin, 'Joined ' + params[1]); break; case 'part': instance.part(params[1]); + instance.say(admin, 'Left ' + params[1]); break; case 'reload': instance.say(admin, 'Reloading DB.'); @@ -109,7 +112,8 @@ instance.addListener('PRIVMSG', function(data) { instance.say(data.channel, db.lampPuns.random()); break; case '~rq': - instance.say(data.channel, Object.values(db.quotes).random()); + var rQuote = Object.keys(db.quotes).random(); + instance.say(data.channel, rQuote + ': ' + db.quotes[rQuote]); break; } }