3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 19:52:36 +01:00

total quote count

This commit is contained in:
Luke Slater 2011-11-29 13:28:22 +00:00
parent 34555817fc
commit 5379dc3d7f

View File

@ -92,6 +92,7 @@ var quotes = function(dbot) {
} else { // Give total quote count
var totalQuoteCount = 0;
for(var category in quotes) {
console.log('adding ' + category.length);
totalQuoteCount += category.length;
}
dbot.say(data.channel, 'There are ' + totalQuoteCount + ' quotes in total.');