diff --git a/modules/imgur/imgur.js b/modules/imgur/imgur.js index 112ba00..6aa0738 100644 --- a/modules/imgur/imgur.js +++ b/modules/imgur/imgur.js @@ -5,6 +5,7 @@ var _ = require('underscore')._, request = require('request'), + async = require('async'), crypto = require('crypto'); var imgur = function(dbot) { @@ -287,11 +288,12 @@ 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); - for(var i=0;i