Removed debugging console.logs

This commit is contained in:
Luke Slater 2012-03-15 12:57:54 +00:00
parent 05fc0418d3
commit 12e62df846

View File

@ -6,7 +6,6 @@ var quotes = function(dbot) {
// Retrieve a random quote from a given category, interpolating any quote references (~~QUOTE CATEGORY~~) within it // Retrieve a random quote from a given category, interpolating any quote references (~~QUOTE CATEGORY~~) within it
var interpolatedQuote = function(key, quoteTree) { var interpolatedQuote = function(key, quoteTree) {
if(quoteTree !== undefined && quoteTree.indexOf(key) != -1) { if(quoteTree !== undefined && quoteTree.indexOf(key) != -1) {
console.log('nrll');
return ''; return '';
} else if(quoteTree === undefined) { } else if(quoteTree === undefined) {
quoteTree = []; quoteTree = [];
@ -173,7 +172,6 @@ var quotes = function(dbot) {
} else { // Give total quote count } else { // Give total quote count
var totalQuoteCount = 0; var totalQuoteCount = 0;
for(var category in quotes) { for(var category in quotes) {
console.log('adding ' + category.length);
totalQuoteCount += category.length; totalQuoteCount += category.length;
} }
dbot.say(data.channel, 'There are ' + totalQuoteCount + ' quotes in total.'); dbot.say(data.channel, 'There are ' + totalQuoteCount + ' quotes in total.');