forked from GitHub/dbot
modehate
This commit is contained in:
parent
50e7b46047
commit
79bbc034c4
@ -61,6 +61,10 @@ var adminCommands = function(dbot) {
|
|||||||
} else {
|
} else {
|
||||||
dbot.say(data.channel, 'It appears ' + params[1] + 'wasn\'t banned from that command, you fool.');
|
dbot.say(data.channel, 'It appears ' + params[1] + 'wasn\'t banned from that command, you fool.');
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
'modehate': function(data, params) {
|
||||||
|
dbot.db.modehate.push(params[2]);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
17
modules/modehate.js
Normal file
17
modules/modehate.js
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
var modehate = function(dbot) {
|
||||||
|
var dbot = dbot;
|
||||||
|
|
||||||
|
return {
|
||||||
|
'listener': function(data) {
|
||||||
|
if(dbot.db.modehate.include(data.user)) {
|
||||||
|
dbot.instance.send('KICK', data.channel, data.user, 'gtfo')
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
on: 'MODE'
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
exports.fetch = function(dbot) {
|
||||||
|
return modehate(dbot);
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user