dbot/modules/modehate.js

18 lines
359 B
JavaScript
Raw Normal View History

2011-10-12 19:09:55 +02:00
var modehate = function(dbot) {
var dbot = dbot;
return {
'listener': function(data) {
if(dbot.db.modehate.include(data.user)) {
2011-10-12 19:21:38 +02:00
dbot.instance.send('KICK', data.channel, data.user, 'gtfo');
2011-10-12 19:09:55 +02:00
}
},
2011-10-12 22:23:35 +02:00
'on': 'PRIVMSG'
2011-10-12 19:09:55 +02:00
};
};
exports.fetch = function(dbot) {
return modehate(dbot);
};