more async edits and config updated for boorus

This commit is contained in:
Dalton
2018-12-11 23:31:23 -08:00
parent b722e83b47
commit 63883e4824
2 changed files with 142 additions and 11 deletions

View File

@@ -26,18 +26,148 @@
"hentaibondage": "[NSFW] **hentaibondage:** Posts a picture of hentai in bondage (r/hentaibondage)"
},
"responses": {
"stupidQuestion": ["What kind of dumb question is that?", "A real question please.",
"Is that supposed to be a question?", "Who asked such a dumb question?",
"How about a good question instead?", "Only good questions please",
"Oh god, is that a question?", "Are you dumb because that is a dumb question."],
"noQuestion": ["it helps to ask a question...", "question plz.", "where is the question?"],
"eightBall": ["Maybe.", "Certainly not.", "I hope so.", "Not in your wildest dreams.",
"There is a good chance.", "Quite likely.", "I think so.", "I hope not.",
"I hope so.", "Never!", "Fuhgeddaboudit.", "Ahaha! Really?!?", "Pfft.",
"Sorry, bucko.", "Hell, yes.", "Hell to the no.", "The future is bleak.",
"The future is uncertain.", "I would rather not say.", "Who cares?",
"Possibly.", "Never, ever, ever.", "There is a small chance.", "Yes!"]
"stupidQuestion": [
"What kind of dumb question is that?",
"A real question please.",
"Is that supposed to be a question?",
"Who asked such a dumb question?",
"How about a good question instead?",
"Only good questions please",
"Oh god, is that a question?",
"Are you dumb because that is a dumb question."
],
"noQuestion": [
"it helps to ask a question...",
"question plz.",
"where is the question?"
],
"eightBall": [
"Maybe.",
"Certainly not.",
"I hope so.",
"Not in your wildest dreams.",
"There is a good chance.",
"Quite likely.",
"I think so.",
"I hope not.",
"I hope so.",
"Never!",
"Fuhgeddaboudit.",
"Ahaha! Really?!?",
"Pfft.",
"Sorry, bucko.",
"Hell, yes.",
"Hell to the no.",
"The future is bleak.",
"The future is uncertain.",
"I would rather not say.",
"Who cares?",
"Possibly.",
"Never, ever, ever.",
"There is a small chance.",
"Yes!"
]
},
"redditBoorus": [
"ahoge",
"animeblush",
"animefeet",
"animegirlswithtowels",
"animehandbras",
"animelegs",
"animelegwear",
"animemaids",
"animemilfs",
"animeponytails",
"animesidetails",
"animesnowscapes",
"animewallpaper",
"araragigirls",
"awenime",
"awwcoholics",
"awwnime",
"azurelane",
"azurlewd",
"bakachika",
"biganimetiddies",
"bishounen",
"bowsette",
"cellsatwork",
"chibi",
"chinadress",
"cutelittlefangs",
"darlinginthefranxx",
"ecchi",
"elriosartgallery",
"fromis",
"fujojoshi",
"gamindustri",
"ganbaruby",
"gate",
"goblinslayer",
"grailwhores",
"gunime",
"hanamaru",
"hatsune",
"headpats",
"himecut",
"homura",
"honkers",
"imouto",
"inumimi",
"kanmusu",
"kanmusunights",
"kemonomimi",
"kitsunemimi",
"kon",
"konosuba",
"kpics",
"legendaryminalinsky",
"lovearrowshoot",
"lovelive",
"megane",
"melanime",
"moesaic",
"moescape",
"moestash",
"moleismoney",
"monstergirl",
"mumble",
"myfirst",
"niconiconi",
"oddeye",
"onetrueichigo",
"onetrueidol",
"onetruekongou",
"onetruelittlesister",
"onetruerem",
"onodera",
"pantsu",
"patchuu",
"pokeporn",
"rishkigal",
"saber",
"sakurauchiriko",
"shorthairedwaifus",
"streetmoe",
"sukebei",
"tanime",
"theforgottenidol",
"thericegoddess",
"thighdeology",
"tourabu",
"tsundere",
"twgok",
"twicemedia",
"twintails",
"twodeeart",
"wholesomeyuri",
"www",
"yousoro",
"yshirt",
"zerotwo",
"zr"
],
"sourceMap": true
},
"exclude": [

1
bot.js
View File

@@ -239,6 +239,7 @@ async function asyncImageRequest(channelMessage) {
let image_url_list = [];
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));
// 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");
image_url_list.concat(getUrlListFromReddit(reddit_json), getUrlListFromImgur(imgur_json)); //, getUrlListFromRedditBooru(redditbooru_json)