diff --git a/modules/fpx/fpx.js b/modules/fpx/fpx.js index a2ebdc4..e0292bf 100644 --- a/modules/fpx/fpx.js +++ b/modules/fpx/fpx.js @@ -17,8 +17,8 @@ var fpx = function(dbot) { console.log(error); } else { var name = results.photos[random].name, - url = results.photos[random].image_url; - event.reply(dbot.t('5px_result',{'name':name,'url':url})); + id = results.photos[random].id; + event.reply(dbot.t('5px_result',{'name':name,'id':id})); } }); } diff --git a/modules/fpx/strings.json b/modules/fpx/strings.json index 3a42e73..aa41bf0 100644 --- a/modules/fpx/strings.json +++ b/modules/fpx/strings.json @@ -1,6 +1,6 @@ { "5px_result":{ - "en": "{name} - {url}" + "en": "{name} - http://500px.com/photo/{id}" }, "5px_error": { "en": "Something went wrong :( Example: '~r500px'"