mirror of
https://github.com/reality/dbot.git
synced 2024-12-25 04:02:39 +01:00
fix thing +_+++++
This commit is contained in:
parent
d97e4969f9
commit
164ec47337
@ -45,6 +45,7 @@ var karma = function(dbot) {
|
||||
this.listener = function(event) {
|
||||
var match = event.message.match(/^(.+)(\+\+|\-\-)$/);
|
||||
if(match) {
|
||||
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 : - )');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user