forked from GitHub/dbot
500px crappy photo fix
This commit is contained in:
parent
408707157a
commit
3ea9fb8c68
@ -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}));
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"result":{
|
||||
"en": "{name} - {url}"
|
||||
"en": "{name} - http://500px.com/photo/{id}"
|
||||
},
|
||||
"error": {
|
||||
"en": "Something went wrong :( Example:'~r500px'"
|
||||
|
Loading…
Reference in New Issue
Block a user