3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-18 08:32:42 +01:00

total quote count

This commit is contained in:
Luke Slater 2011-11-29 13:20:47 +00:00
parent 0b50552623
commit 676be3f93f

View File

@ -91,7 +91,7 @@ var quotes = function(dbot) {
} }
} else { // Give total quote count } else { // Give total quote count
var totalQuoteCount = 0; var totalQuoteCount = 0;
for(var category in dbot.db.quotes) { for(var category in quotes) {
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.');