mirror of
https://github.com/reality/dbot.git
synced 2024-12-25 04:02:39 +01:00
fix thing
This commit is contained in:
parent
234e84010c
commit
a6ca9bb9c8
@ -16,10 +16,14 @@ var imgur = function(dbot) {
|
|||||||
if(imgData.title) {
|
if(imgData.title) {
|
||||||
info += imgData.title + ' is ';
|
info += imgData.title + ' is ';
|
||||||
}
|
}
|
||||||
if(imgData.animated) {
|
if(imgData.type) {
|
||||||
info += 'an animated ' + imgData.type.split('/')[1] + ' with ';
|
if(imgData.animated) {
|
||||||
|
info += 'an animated ' + imgData.type.split('/')[1] + ' with ';
|
||||||
|
} else {
|
||||||
|
info += 'a non-animated ' + imgData.type.split('/')[1] + ' with ';
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
info += 'a non-animated ' + imgData.type.split('/')[1] + ' with ';
|
info += 'an image with ';
|
||||||
}
|
}
|
||||||
info += imgData.views + ' views (';
|
info += imgData.views + ' views (';
|
||||||
info += imgData.width + 'x' + imgData.height + ')].';
|
info += imgData.width + 'x' + imgData.height + ')].';
|
||||||
|
Loading…
Reference in New Issue
Block a user