3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 11:42:36 +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'));
} 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}));
}
});

View File

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