mirror of
https://github.com/reality/dbot.git
synced 2024-11-24 12:59:34 +01:00
19 lines
395 B
JavaScript
19 lines
395 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 #42 ' + data.user + ' :gtfo');
|
|
}
|
|
},
|
|
|
|
'on': 'MODE'
|
|
};
|
|
};
|
|
|
|
exports.fetch = function(dbot) {
|
|
return modehate(dbot);
|
|
};
|