From 824e5381e03f351062a12041ddfcb555b3128c29 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Thu, 20 Oct 2011 11:55:09 +0100 Subject: [PATCH] debugging. so what? --- modules/youare.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/youare.js b/modules/youare.js index 7401a11..06663b5 100644 --- a/modules/youare.js +++ b/modules/youare.js @@ -5,6 +5,9 @@ var youAre = function(dbot) { 'listener': function(data) { var key = data.message.valMatch(/(\bis\b|\bare\b)\s+([\w\s\d]*?)(\s+)?(,|\.|\band\b|$)/, 5); + console.log(key[1]); + console.log(key[2]); + console.log(key[3]); if(key && key[2] != "" && Number.prototype.chanceIn(1, 25) && data.user != 'aisbot') { dbot.say(data.channel, data.user + ': You\'re ' + key[2] + '.'); }