From 63883e4824ca3e08217e46e365111618b03b533d Mon Sep 17 00:00:00 2001 From: Dalton Date: Tue, 11 Dec 2018 23:31:23 -0800 Subject: [PATCH] more async edits and config updated for boorus --- bot-config.json | 152 ++++++++++++++++++++++++++++++++++++++++++++---- bot.js | 1 + 2 files changed, 142 insertions(+), 11 deletions(-) diff --git a/bot-config.json b/bot-config.json index 1e009ea..5a58d5f 100644 --- a/bot-config.json +++ b/bot-config.json @@ -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": [ diff --git a/bot.js b/bot.js index def341a..90b6f02 100644 --- a/bot.js +++ b/bot.js @@ -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)