From 93022fa4f2f1a82a83caacd5642b086473464f1e Mon Sep 17 00:00:00 2001 From: reality Date: Wed, 26 Feb 2014 15:49:44 +0000 Subject: [PATCH] concurrise the imgur pulls --- 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 35d28bc..73f966c 100644 --- a/modules/imgur/imgur.js +++ b/modules/imgur/imgur.js @@ -304,7 +304,7 @@ var imgur = function(dbot) { dbot.api.link.addHandler('imgurimage', /https?:\/\/i\.imgur\.com\/([a-zA-Z0-9]+)\.([jpg|png|gif])/, imgurHandler); dbot.api.link.addHandler('imgurimage', /https?:\/\/imgur\.com\/([a-zA-Z0-9]+)/, imgurHandler); - async.timesSeries(this.config.ricachelength, function(n, next) { + async.times(this.config.ricachelength, function(n, next) { this.api.getGoodRandomImage(function(link, imgData) { this.riCache.push([ link, imgData ]); next();