forked from GitHub/dbot
imgur info string [#462]
This commit is contained in:
parent
27ace10fe9
commit
06c14d4fc5
@ -111,7 +111,7 @@ var imgur = function(dbot) {
|
|||||||
if(matches[1]) {
|
if(matches[1]) {
|
||||||
this.api.getImageInfo(matches[1], function(imgData) {
|
this.api.getImageInfo(matches[1], function(imgData) {
|
||||||
var info = this.internalAPI.infoString(imgData);
|
var info = this.internalAPI.infoString(imgData);
|
||||||
if(info) event.reply('[' + info + ']');
|
if(info) event.reply(dbot.t('imgurinfo', { 'info': info });
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
}
|
}
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
|
@ -3,5 +3,8 @@
|
|||||||
"en": "might be NSFW",
|
"en": "might be NSFW",
|
||||||
"na'vi": "kxawm ke wivìntxu evengur",
|
"na'vi": "kxawm ke wivìntxu evengur",
|
||||||
"nl": "bevat mogelijk gevoelige beelden"
|
"nl": "bevat mogelijk gevoelige beelden"
|
||||||
|
},
|
||||||
|
"imgurinfo": {
|
||||||
|
"en": "[{info}]"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user