dbot/modules/modehate.js
Luke Slater 8b23d272c6 test
2011-10-12 21:35:33 +01:00

20 lines
507 B
JavaScript

var modehate = function(dbot) {
var dbot = dbot;
return {
'listener': function(data) {
console.log('caught modehate');
if(dbot.db.modehate.include(data.user)) {
dbot.instance.send('KICK ' + data.channel + ' ' + data.user + ' :gtfo');
console.log(data.channel,'KICK ' + data.channel + ' ' + data.user + ' :gtfo');
}
},
'on': 'MODE'
};
};
exports.fetch = function(dbot) {
return modehate(dbot);
};