mirror of
https://github.com/reality/dbot.git
synced 2024-11-30 16:09:27 +01:00
no more :
This commit is contained in:
parent
81520a3aab
commit
2d1cfdd567
@ -99,7 +99,7 @@ var karma = function(dbot) {
|
|||||||
this.listener = function(event) {
|
this.listener = function(event) {
|
||||||
var match = event.message.match(/^(.+)(\+\+|\-\-)$/);
|
var match = event.message.match(/^(.+)(\+\+|\-\-)$/);
|
||||||
if(match) {
|
if(match) {
|
||||||
match[1] = match[1].replace(/(\+|\-)/g,'').trim();
|
match[1] = match[1].replace(/(\+|\-)/g,'').replace(/:/g,'').trim();
|
||||||
if(_.has(this.lastKarma, event.rUser.id) && this.lastKarma[event.rUser.id] + 5000 > Date.now()) {
|
if(_.has(this.lastKarma, event.rUser.id) && this.lastKarma[event.rUser.id] + 5000 > Date.now()) {
|
||||||
return event.reply('Try again in a few seconds : - )');
|
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()) {
|
} else if(event.rUser.currentNick.toLowerCase === match[1].toLowerCase() || event.rUser.primaryNick.toLowerCase() === match[1].toLowerCase()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user