diff --git a/modules/reddit/reddit.js b/modules/reddit/reddit.js index 5a8654d..ce95c28 100644 --- a/modules/reddit/reddit.js +++ b/modules/reddit/reddit.js @@ -8,6 +8,7 @@ var _ = require('underscore')._, var reddit = function(dbot) { this.ApiRoot = 'http://reddit.com/'; this.UserAgent = 'dbot by u/realitone'; + this.ints = []; this.internalAPI = { 'getChannelFeeds': function(server, cName, callback) { @@ -39,6 +40,11 @@ var reddit = function(dbot) { var channels = [], checkTimes = []; + for(i=0;i 0) { _.each(posts, function(post) { @@ -66,7 +72,7 @@ var reddit = function(dbot) { checkTimes[channel.id][feed.subreddit] = Date.now(); } }.bind(this)); - }.bind(this)); + }, feed.interval)); }.bind(this)); }.bind(this)); }.bind(this));