forked from GitHub/dbot
remove the debug output thing
This commit is contained in:
parent
f04da64b21
commit
b0d41fb490
@ -41,7 +41,6 @@ var reddit = function(dbot) {
|
|||||||
|
|
||||||
this.db.scan('reddit_feeds', function(channel) {
|
this.db.scan('reddit_feeds', function(channel) {
|
||||||
if(channel) {
|
if(channel) {
|
||||||
console.log(channel);
|
|
||||||
channels.push(channel);
|
channels.push(channel);
|
||||||
}
|
}
|
||||||
}, function() {
|
}, function() {
|
||||||
@ -131,8 +130,6 @@ var reddit = function(dbot) {
|
|||||||
if(!err && body && body.kind === 'Listing') {
|
if(!err && body && body.kind === 'Listing') {
|
||||||
var posts = _.pluck(body.data.children, 'data');
|
var posts = _.pluck(body.data.children, 'data');
|
||||||
newPosts = _.filter(posts, function(post) {
|
newPosts = _.filter(posts, function(post) {
|
||||||
console.log(post.created_utc + ' vs ' + (last /
|
|
||||||
1000));
|
|
||||||
return post.created_utc > (last / 1000);
|
return post.created_utc > (last / 1000);
|
||||||
});
|
});
|
||||||
callback(null, newPosts);
|
callback(null, newPosts);
|
||||||
|
Loading…
Reference in New Issue
Block a user