mirror of
https://github.com/reality/dbot.git
synced 2024-11-24 21:09:31 +01:00
22 lines
553 B
JavaScript
22 lines
553 B
JavaScript
var puns = function(dbot) {
|
|
var dbot = dbot;
|
|
|
|
return {
|
|
'listener': function(data) {
|
|
if(dbot.moduleNames.include('quotes')) {
|
|
if(dbot.db.quoteArrs.hasOwnProperty(data.user.toLowerCase())) {
|
|
data.message = '~q ' + data.user.toLowerCase();
|
|
var params = data.message.split(' ');
|
|
dbot.commands[params[0]](data, params);
|
|
}
|
|
}
|
|
},
|
|
|
|
'on': 'JOIN'
|
|
};
|
|
}
|
|
|
|
exports.fetch = function(dbot) {
|
|
return puns(dbot);
|
|
};
|