mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 22:39:26 +01:00
18 lines
356 B
JavaScript
18 lines
356 B
JavaScript
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);
|
|
};
|