forked from GitHub/dbot
Puns also changed to dispatch a '~q'
This commit is contained in:
parent
a4313ee665
commit
a08e904ea6
@ -3,10 +3,14 @@ var puns = function(dbot) {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
'listener': function(data) {
|
'listener': function(data) {
|
||||||
if(data.user == 'reality') {
|
if(dbot.moduleNames.include('quotes')) {
|
||||||
dbot.instance.say(data.channel, dbot.interpolatedQuote('realityonce'));
|
if(data.user == 'reality') {
|
||||||
} else if(dbot.db.quoteArrs.hasOwnProperty(data.user.toLowerCase())) {
|
data.message = '~q realityonce';
|
||||||
dbot.say(data.channel, data.user + ': ' + dbot.interpolatedQuote(data.user.toLowerCase()));
|
} else 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);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user