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:
parent
6145e55942
commit
0b50552623
@ -89,6 +89,12 @@ var quotes = function(dbot) {
|
|||||||
} else {
|
} else {
|
||||||
dbot.say(data.channel, 'No quotes under ' + q[1]);
|
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