mirror of
https://github.com/reality/dbot.git
synced 2024-11-23 20:39:25 +01:00
quotes listener operational
This commit is contained in:
parent
b8a25062b5
commit
b1f450a3e1
@ -99,10 +99,11 @@ var quotes = function(dbot) {
|
||||
dbot.instance.emit(event);
|
||||
}
|
||||
} else if(event.action == 'JOIN') {
|
||||
var userQuote = this.api.getQuote(event, event.user)
|
||||
if(userQuote) {
|
||||
event.reply(event.user + ': ' + this.api.getQuote(event, event.user));
|
||||
}
|
||||
var userQuote = this.api.getQuote(event.user, function(quote) {
|
||||
if(quote) {
|
||||
event.reply(event.user + ': ' + quote);
|
||||
}
|
||||
});
|
||||
}
|
||||
}.bind(this);
|
||||
this.on = ['PRIVMSG', 'JOIN'];
|
||||
|
Loading…
Reference in New Issue
Block a user