log
This commit is contained in:
3
bot.js
3
bot.js
@@ -242,6 +242,7 @@ async function loadJson(url, auth) {
|
||||
return response.json();
|
||||
} else {
|
||||
console.log(response);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -266,8 +267,8 @@ async function asyncImageRequest(requested_item) {
|
||||
imgur_url_list = getUrlListFromImgur(imgur_json);
|
||||
}
|
||||
image_url_list = image_url_list.concat(reddit_url_list, imgur_url_list); //, getUrlListFromRedditBooru(redditbooru_json)
|
||||
//console.log('image concat list:' + image_url_list);
|
||||
|
||||
console.log('image concat list:' + image_url_list);
|
||||
if (image_url_list) {
|
||||
return image_url_list[getRandomInt(0, image_url_list.length - 1)];
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user