mirror of
https://github.com/reality/dbot.git
synced 2024-11-30 16:09:27 +01:00
karma
This commit is contained in:
parent
7ad9a5c6a0
commit
e426a306ab
@ -102,6 +102,8 @@ var karma = function(dbot) {
|
||||
match[1] = match[1].replace(/(\+|\-)/g,'');
|
||||
if(_.has(this.lastKarma, event.rUser.id) && this.lastKarma[event.rUser.id] + 5000 > Date.now()) {
|
||||
return event.reply('Try again in a few seconds : - )');
|
||||
} else if(event.rUser.currentNick.toLowerCase === match[1].toLowerCase() || event.rUser.primaryNick.toLowerCase() === match[1].toLowerCase()) {
|
||||
return event.reply('Stop playing with yourself : - )');
|
||||
}
|
||||
|
||||
this.internalAPI.getKarma(match[1], function(err, karma) {
|
||||
|
Loading…
Reference in New Issue
Block a user