i love shots in the dark

This commit is contained in:
reality 2013-08-21 15:13:58 +00:00
parent 71b7b3c570
commit 2c988b0f77

View File

@ -80,7 +80,7 @@ var imgur = function(dbot) {
dbot.db.imgur.totalHttpRequests += 1; dbot.db.imgur.totalHttpRequests += 1;
var image = request(testUrl, function(error, response, body) { var image = request(testUrl, function(error, response, body) {
// 492 is body.length of a removed image // 492 is body.length of a removed image
var img = gm(response); var img = gm(body);
if(!error && response.statusCode == 200 && body.length != 492 && if(!error && response.statusCode == 200 && body.length != 492 &&
img.height > 300 && img.width > 300) { img.height > 300 && img.width > 300) {
dbot.db.imgur.totalImages += 1; dbot.db.imgur.totalImages += 1;