From b7706cd72d82fc659f12bec601377bf71c81f002 Mon Sep 17 00:00:00 2001 From: Dalton Date: Wed, 12 Dec 2018 20:34:41 -0800 Subject: [PATCH] list debugging --- bot.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bot.js b/bot.js index 9d2e200..2896b39 100644 --- a/bot.js +++ b/bot.js @@ -192,7 +192,9 @@ 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])); 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'); url_list.push(json.data.children[i].data.url); } }