forked from GitHub/dbot
derp
This commit is contained in:
parent
f217289e9d
commit
f6b8ff9030
@ -74,6 +74,8 @@ var sstats = function(dbot) {
|
||||
};
|
||||
|
||||
this.listener = function(event) {
|
||||
if(event.message.charAt(0) != '~') return;
|
||||
|
||||
event.cStats.lines++;
|
||||
event.uStats.lines++;
|
||||
|
||||
@ -113,7 +115,6 @@ var sstats = function(dbot) {
|
||||
}
|
||||
|
||||
// Look for tracked words.
|
||||
if(event.message.charAt(0) != '~') {
|
||||
var wMap = {}; // Why reduce isn't working idk
|
||||
_.each(words, function(word) {
|
||||
word = word.toLowerCase();
|
||||
@ -132,7 +133,6 @@ var sstats = function(dbot) {
|
||||
}
|
||||
}.bind(this));
|
||||
}, this);
|
||||
}
|
||||
|
||||
this.db.save('channel_stats', event.cStats.id, event.cStats, function() {});
|
||||
this.db.save('user_stats', event.uStats.id, event.uStats, function() {});
|
||||
|
Loading…
Reference in New Issue
Block a user