3
0
mirror of https://github.com/reality/dbot.git synced 2025-01-23 18:44:14 +01:00

lowercase the thing

This commit is contained in:
reality 2013-10-20 18:44:02 +00:00
parent c372efc3eb
commit c56c7d2664

View File

@ -115,6 +115,7 @@ var sstats = function(dbot) {
if(event.message.charAt(0) != '~') {
var wMap = {}; // Why reduce isn't working idk
_.each(words, function(word) {
word = word.toLowerCase();
if(!_.has(wMap, word)) wMap[word] = 0;
wMap[word]++;
});