mirror of
https://github.com/reality/dbot.git
synced 2024-11-24 04:49:25 +01:00
total quote count
This commit is contained in:
parent
6145e55942
commit
0b50552623
@ -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.');
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user