3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-26 04:32:37 +01:00

move rq to new interpolatedquotes api

This commit is contained in:
reality 2013-06-01 19:38:44 +00:00
parent 39c298037d
commit 71b9e482c1

View File

@ -198,7 +198,8 @@ var commands = function(dbot) {
'~rq': function(event) { '~rq': function(event) {
if(_.keys(quotes).length > 0) { if(_.keys(quotes).length > 0) {
var category = _.keys(quotes)[_.random(0, _.size(quotes) -1)]; var category = _.keys(quotes)[_.random(0, _.size(quotes) -1)];
event.reply(category + ': ' + this.internalAPI.interpolatedQuote(event.server, event.channel.name, category)); event.reply(category + ': ' +
this.internalAPI.interpolatedQuote(event.server, event.channel.name, event.user, category));
} else { } else {
event.reply(dbot.t('no_results')); event.reply(dbot.t('no_results'));
} }