diff --git a/modules/500px/500px.js b/modules/500px/500px.js index 89e61ca..dcfc436 100644 --- a/modules/500px/500px.js +++ b/modules/500px/500px.js @@ -30,9 +30,9 @@ var foo = function(dbot) { //name of module event.reply(dbot.t('error')); } else { // getting photo name and url from results json http://is.gd/hALYmR - var name=results.photos[random].name, - url=results.photos[random].image_url; - event.reply(dbot.t('result',{'name':name,'url'=url})); + var 500px_name=results.photos[random].name, + 500px_id=results.photos[random].id; + event.reply(dbot.t('result',{'name':500px_name,'id'=500px_id})); } }); diff --git a/modules/500px/strings.json b/modules/500px/strings.json index b0a684d..16cea03 100644 --- a/modules/500px/strings.json +++ b/modules/500px/strings.json @@ -1,6 +1,6 @@ { "result":{ - "en": "{name} - {url}" + "en": "{name} - http://500px.com/photo/{id}" }, "error": { "en": "Something went wrong :( Example:'~r500px'"