2011-08-22 19:56:36 +02:00
|
|
|
var puns = function(dbot) {
|
|
|
|
var dbot = dbot;
|
|
|
|
|
|
|
|
return {
|
|
|
|
'listener': function(data) {
|
|
|
|
if(data.user == 'Lamp') {
|
|
|
|
dbot.say(data.channel, dbot.db.quoteArrs.lamp.random());
|
|
|
|
} else if(data.user == 'reality') {
|
|
|
|
dbot.instance.say(data.channel, dbot.db.realiPuns.random());
|
2011-08-22 22:46:43 +02:00
|
|
|
} else if(dbot.instance.inChannel(data.channel)) {
|
2011-08-22 19:56:36 +02:00
|
|
|
dbot.instance.say('aisbot', '.karma ' + data.user);
|
|
|
|
dbot.waitingForKarma = data.channel;
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
'on': 'JOIN'
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
exports.fetch = function(dbot) {
|
|
|
|
return puns(dbot);
|
|
|
|
};
|