3
0
mirror of https://github.com/reality/dbot.git synced 2025-02-17 14:01:04 +01:00
dbot/modules/modehate.js

24 lines
589 B
JavaScript
Raw Normal View History

2011-10-12 18:09:55 +01:00
var modehate = function(dbot) {
var dbot = dbot;
return {
2011-10-15 19:48:54 +01:00
'listener': function(data, params) {
2011-10-12 21:29:05 +01:00
console.log('caught modehate');
2011-10-15 19:48:54 +01:00
console.log(params[0]);
console.log(params[1]);
console.log(params[2]);
console.log(params[3]);
console.log(params[4]);
//if(dbot.db.modehate.include(data.user)) {
//dbot.instance.send('KICK #42 ' + data.user + ' :gtfo');
//}
2011-10-12 18:09:55 +01:00
},
2011-10-12 21:25:42 +01:00
'on': 'MODE'
2011-10-12 18:09:55 +01:00
};
};
exports.fetch = function(dbot) {
return modehate(dbot);
};