forked from GitHub/dbot
fix web link api call for ~link
This commit is contained in:
parent
eec997a0ac
commit
134f2b76bb
@ -361,7 +361,7 @@ var commands = function(dbot) {
|
|||||||
category = result;
|
category = result;
|
||||||
}, function(err) {
|
}, function(err) {
|
||||||
if(category) {
|
if(category) {
|
||||||
if(_.has(dbot.config, 'web') && _.has(dbot.config.web, 'webHost')) {
|
if(_.has(dbot.modules, 'web')) {
|
||||||
event.reply(dbot.t('quote_link', {
|
event.reply(dbot.t('quote_link', {
|
||||||
'category': key,
|
'category': key,
|
||||||
'url': dbot.api.web.getUrl('quotes/' + encodeURIComponent(key))
|
'url': dbot.api.web.getUrl('quotes/' + encodeURIComponent(key))
|
||||||
|
Loading…
Reference in New Issue
Block a user