forked from GitHub/dbot
lowercase the thing
This commit is contained in:
parent
c372efc3eb
commit
c56c7d2664
@ -115,6 +115,7 @@ var sstats = function(dbot) {
|
|||||||
if(event.message.charAt(0) != '~') {
|
if(event.message.charAt(0) != '~') {
|
||||||
var wMap = {}; // Why reduce isn't working idk
|
var wMap = {}; // Why reduce isn't working idk
|
||||||
_.each(words, function(word) {
|
_.each(words, function(word) {
|
||||||
|
word = word.toLowerCase();
|
||||||
if(!_.has(wMap, word)) wMap[word] = 0;
|
if(!_.has(wMap, word)) wMap[word] = 0;
|
||||||
wMap[word]++;
|
wMap[word]++;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user