3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 22:39:26 +01:00

total quote count

This commit is contained in:
Luke Slater 2011-11-29 13:18:59 +00:00
parent 6145e55942
commit 0b50552623

View File

@ -89,6 +89,12 @@ var quotes = function(dbot) {
} else {
dbot.say(data.channel, 'No quotes under ' + q[1]);
}
} else { // Give total quote count
var totalQuoteCount = 0;
for(var category in dbot.db.quotes) {
totalQuoteCount += category.length;
}
dbot.say(data.channel, 'There are ' + totalQuoteCount + ' quotes in total.');
}
},