diff --git a/bot.js b/bot.js index 28f3509..5c0453f 100644 --- a/bot.js +++ b/bot.js @@ -157,6 +157,8 @@ function handleRedditJson(data) { return json.data.children[rand].data.url; } } + // What if we don't find anything i.e. r/dogs but its valid subreddit. + return ""; } // Makes an async url request with the provided function: 'process'.