3
0
mirror of https://github.com/reality/dbot.git synced 2025-02-17 14:01:04 +01:00
dbot/modules/modehate.js
Luke Slater 4c3b8f1082 test
2011-10-12 21:33:17 +01:00

20 lines
504 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');
dbot.say(data.channel,'KICK ' + data.channel + ' ' + data.user + ' :gtfo');
}
},
'on': 'MODE'
};
};
exports.fetch = function(dbot) {
return modehate(dbot);
};