From d82108de831bab57613385d9bdace6908d5fca75 Mon Sep 17 00:00:00 2001 From: reality Date: Wed, 10 Apr 2013 20:08:04 +0000 Subject: [PATCH] imgur better --- modules/imgur/imgur.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/imgur/imgur.js b/modules/imgur/imgur.js index 744e390..ac5a578 100644 --- a/modules/imgur/imgur.js +++ b/modules/imgur/imgur.js @@ -11,7 +11,7 @@ var imgur = function(dbot) { 'getRandomImage': function(callback) { var testUrl = 'http://i.imgur.com/' + Math.random().toString(36).substr(2,6) + - '.jpg'; + '.png'; var image = request(testUrl, function(error, response, body) { // 492 is body.length of a removed image if(!error && response.statusCode == 200 && body.length != 492) {