From b9894b5597e018a51d8049d6d4c2cdb14f02e7a0 Mon Sep 17 00:00:00 2001 From: reality Date: Thu, 20 Feb 2014 20:27:21 +0000 Subject: [PATCH] add nerfed fix --- modules/fpx/fpx.js | 4 ++-- modules/fpx/strings.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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'"