From a5a78887c01245e0d15852247ed86b7dc6960ca4 Mon Sep 17 00:00:00 2001 From: Dalton Date: Wed, 12 Dec 2018 20:37:20 -0800 Subject: [PATCH] checking list pass --- bot.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bot.js b/bot.js index 2896b39..3158147 100644 --- a/bot.js +++ b/bot.js @@ -192,12 +192,14 @@ function getUrlListFromReddit(json) { let url_list = []; for (let i = 0; i < json.data.children.length; i++) { - console.log('reddit result:' + JSON.stringify(json.data.children[i])); + //console.log('reddit result:' + JSON.stringify(json.data.children[i])); if (json.data.children[i].data.post_hint === "image" || json.data.children[i].data.post_hint === "link" || json.data.children[i].data.post_hint === "rich:video") { - console.log('pushing onto list'); + //console.log('pushing onto list'); url_list.push(json.data.children[i].data.url); } } + + console.log(url_list); return url_list; }