new header style

This commit is contained in:
Dalton
2018-12-12 20:15:39 -08:00
parent 62a114ad1f
commit 93af57ebc1

8
bot.js
View File

@@ -256,7 +256,13 @@ async function asyncImageRequest(channelMessage) {
let reddit_json = await loadJson("https://www.reddit.com/r/" + requested_item + "/.json?show=all&count=25&limit=100");
let imgur_json = await loadJson(
'https://api.imgur.com/3/gallery/r/' + requested_item + '/time/' + getRandomInt(1, 5),
{'Authorization': 'Client-ID ' + auth.imgur}
{
headers: {
Authorization: 'Client-ID ' + auth.imgur,
credentials: 'same-origin',
Accept: 'application/json'
}
}
);
// todo need to check config to see if it's a valid booruuuuu
//let redditbooru_json = await loadJson("https://" + requested_item + ".redditbooru.com/images/?limit=1000");