new header style
This commit is contained in:
8
bot.js
8
bot.js
@@ -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 reddit_json = await loadJson("https://www.reddit.com/r/" + requested_item + "/.json?show=all&count=25&limit=100");
|
||||||
let imgur_json = await loadJson(
|
let imgur_json = await loadJson(
|
||||||
'https://api.imgur.com/3/gallery/r/' + requested_item + '/time/' + getRandomInt(1, 5),
|
'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
|
// 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");
|
//let redditbooru_json = await loadJson("https://" + requested_item + ".redditbooru.com/images/?limit=1000");
|
||||||
|
Reference in New Issue
Block a user