3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-25 04:02:39 +01:00

500px crappy photo fix

This commit is contained in:
thoso 2014-02-20 20:50:12 +01:00
parent 408707157a
commit 3ea9fb8c68
2 changed files with 4 additions and 4 deletions

View File

@ -30,9 +30,9 @@ var foo = function(dbot) { //name of module
event.reply(dbot.t('error')); event.reply(dbot.t('error'));
} else { } else {
// getting photo name and url from results json http://is.gd/hALYmR // getting photo name and url from results json http://is.gd/hALYmR
var name=results.photos[random].name, var 500px_name=results.photos[random].name,
url=results.photos[random].image_url; 500px_id=results.photos[random].id;
event.reply(dbot.t('result',{'name':name,'url'=url})); event.reply(dbot.t('result',{'name':500px_name,'id'=500px_id}));
} }
}); });

View File

@ -1,6 +1,6 @@
{ {
"result":{ "result":{
"en": "{name} - {url}" "en": "{name} - http://500px.com/photo/{id}"
}, },
"error": { "error": {
"en": "Something went wrong :( Example:'~r500px'" "en": "Something went wrong :( Example:'~r500px'"