From 0422c3702d6dbf6bbce000aebc8bf8dc11cce2b2 Mon Sep 17 00:00:00 2001 From: reality Date: Thu, 19 Dec 2013 20:02:50 +0000 Subject: [PATCH] do the thing thing --- modules/reddit/reddit.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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));