mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 14:29:29 +01:00
debug
This commit is contained in:
parent
b8a55400bd
commit
7c7953b3a4
@ -2,11 +2,16 @@ var modehate = function(dbot) {
|
||||
var dbot = dbot;
|
||||
|
||||
return {
|
||||
'listener': function(data) {
|
||||
'listener': function(data, params) {
|
||||
console.log('caught modehate');
|
||||
if(dbot.db.modehate.include(data.user)) {
|
||||
dbot.instance.send('KICK #42 ' + data.user + ' :gtfo');
|
||||
}
|
||||
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');
|
||||
//}
|
||||
},
|
||||
|
||||
'on': 'MODE'
|
||||
|
@ -37,7 +37,6 @@ var quotes = function(dbot) {
|
||||
dbot.say(data.channel, params[1] + ' (' + params[2] + '): ' + matches.random() + ' [' + matches.length + ' results]');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user