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

fix thing

This commit is contained in:
reality 2013-04-13 18:37:47 +00:00
parent 234e84010c
commit a6ca9bb9c8

View File

@ -16,11 +16,15 @@ var imgur = function(dbot) {
if(imgData.title) { if(imgData.title) {
info += imgData.title + ' is '; info += imgData.title + ' is ';
} }
if(imgData.type) {
if(imgData.animated) { if(imgData.animated) {
info += 'an animated ' + imgData.type.split('/')[1] + ' with '; info += 'an animated ' + imgData.type.split('/')[1] + ' with ';
} else { } else {
info += 'a non-animated ' + imgData.type.split('/')[1] + ' with '; info += 'a non-animated ' + imgData.type.split('/')[1] + ' with ';
} }
} else {
info += 'an image with ';
}
info += imgData.views + ' views ('; info += imgData.views + ' views (';
info += imgData.width + 'x' + imgData.height + ')].'; info += imgData.width + 'x' + imgData.height + ')].';
} }