From 6c8f814451d32d649142482c09770355158f08f5 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Mon, 17 Jun 2019 13:35:21 -0400 Subject: [PATCH] sherlock configs are ready --- sopel_modules/SpiceBot/Tools.py | 2 +- sopel_modules/SpiceBot_Configs/sherlock/BLIP.fm.json | 5 +++++ sopel_modules/SpiceBot_Configs/sherlock/Bandcamp.json | 5 +++++ sopel_modules/SpiceBot_Configs/sherlock/Codementor.json | 5 +++++ sopel_modules/SpiceBot_Configs/sherlock/ColourLovers.json | 5 +++++ sopel_modules/SpiceBot_Configs/sherlock/Contently.json | 6 ++++++ .../SpiceBot_Configs/sherlock/Designspiration.json | 5 +++++ sopel_modules/SpiceBot_Configs/sherlock/Ebay.json | 5 +++++ sopel_modules/SpiceBot_Configs/sherlock/Ello.json | 5 +++++ sopel_modules/SpiceBot_Configs/sherlock/Flickr.json | 4 ++++ sopel_modules/SpiceBot_Configs/sherlock/HackerNews.json | 5 +++++ sopel_modules/SpiceBot_Configs/sherlock/HackerOne.json | 5 +++++ sopel_modules/SpiceBot_Configs/sherlock/Houzz.json | 5 +++++ sopel_modules/SpiceBot_Configs/sherlock/IFTTT.json | 5 +++++ sopel_modules/SpiceBot_Configs/sherlock/Pexels.json | 5 +++++ sopel_modules/SpiceBot_Configs/sherlock/ReverbNation.json | 5 +++++ sopel_modules/SpiceBot_Configs/sherlock/Slack.json | 5 +++++ sopel_modules/SpiceBot_Configs/sherlock/Tinder.json | 5 +++++ sopel_modules/SpiceBot_Configs/sherlock/Trip.json | 5 +++++ sopel_modules/SpiceBot_Configs/sherlock/Unsplash.json | 4 ++++ sopel_modules/SpiceBot_Configs/sherlock/WeHeartIt.json | 5 +++++ sopel_modules/SpiceBot_Configs/sherlock/WordPress.json | 6 ++++++ sopel_modules/SpiceBot_Configs/sherlock/devRant.json | 5 +++++ 23 files changed, 111 insertions(+), 1 deletion(-) create mode 100644 sopel_modules/SpiceBot_Configs/sherlock/BLIP.fm.json create mode 100644 sopel_modules/SpiceBot_Configs/sherlock/Bandcamp.json create mode 100644 sopel_modules/SpiceBot_Configs/sherlock/Codementor.json create mode 100644 sopel_modules/SpiceBot_Configs/sherlock/ColourLovers.json create mode 100644 sopel_modules/SpiceBot_Configs/sherlock/Contently.json create mode 100644 sopel_modules/SpiceBot_Configs/sherlock/Designspiration.json create mode 100644 sopel_modules/SpiceBot_Configs/sherlock/Ebay.json create mode 100644 sopel_modules/SpiceBot_Configs/sherlock/Ello.json create mode 100644 sopel_modules/SpiceBot_Configs/sherlock/Flickr.json create mode 100644 sopel_modules/SpiceBot_Configs/sherlock/HackerNews.json create mode 100644 sopel_modules/SpiceBot_Configs/sherlock/HackerOne.json create mode 100644 sopel_modules/SpiceBot_Configs/sherlock/Houzz.json create mode 100644 sopel_modules/SpiceBot_Configs/sherlock/IFTTT.json create mode 100644 sopel_modules/SpiceBot_Configs/sherlock/Pexels.json create mode 100644 sopel_modules/SpiceBot_Configs/sherlock/ReverbNation.json create mode 100644 sopel_modules/SpiceBot_Configs/sherlock/Slack.json create mode 100644 sopel_modules/SpiceBot_Configs/sherlock/Tinder.json create mode 100644 sopel_modules/SpiceBot_Configs/sherlock/Trip.json create mode 100644 sopel_modules/SpiceBot_Configs/sherlock/Unsplash.json create mode 100644 sopel_modules/SpiceBot_Configs/sherlock/WeHeartIt.json create mode 100644 sopel_modules/SpiceBot_Configs/sherlock/WordPress.json create mode 100644 sopel_modules/SpiceBot_Configs/sherlock/devRant.json diff --git a/sopel_modules/SpiceBot/Tools.py b/sopel_modules/SpiceBot/Tools.py index 637d16f..f83f579 100644 --- a/sopel_modules/SpiceBot/Tools.py +++ b/sopel_modules/SpiceBot/Tools.py @@ -333,7 +333,7 @@ def read_directory_json_to_dict(directories, configtypename="Config File", log_f if len(os.listdir(directory)) > 0: for file in os.listdir(directory): filepath = os.path.join(directory, file) - if os.path.isfile(filepath): + if os.path.isfile(filepath) and filepath.endswith('.json'): filesprocess.append(filepath) for filepath in filesprocess: diff --git a/sopel_modules/SpiceBot_Configs/sherlock/BLIP.fm.json b/sopel_modules/SpiceBot_Configs/sherlock/BLIP.fm.json new file mode 100644 index 0000000..22bb880 --- /dev/null +++ b/sopel_modules/SpiceBot_Configs/sherlock/BLIP.fm.json @@ -0,0 +1,5 @@ +{ +"url": "https://blip.fm/{}", +"errorType": "message", +"errorMsg": "Page Not Found" +} diff --git a/sopel_modules/SpiceBot_Configs/sherlock/Bandcamp.json b/sopel_modules/SpiceBot_Configs/sherlock/Bandcamp.json new file mode 100644 index 0000000..51b61b0 --- /dev/null +++ b/sopel_modules/SpiceBot_Configs/sherlock/Bandcamp.json @@ -0,0 +1,5 @@ +{ +"url": "https://www.bandcamp.com/{}", +"errorType": "message", +"errorMsg": "Sorry, that something isn’t here" +} diff --git a/sopel_modules/SpiceBot_Configs/sherlock/Codementor.json b/sopel_modules/SpiceBot_Configs/sherlock/Codementor.json new file mode 100644 index 0000000..af0651d --- /dev/null +++ b/sopel_modules/SpiceBot_Configs/sherlock/Codementor.json @@ -0,0 +1,5 @@ +{ +"url": "https://www.codementor.io/{}", +"errorType": "message", +"errorMsg": "404" +} diff --git a/sopel_modules/SpiceBot_Configs/sherlock/ColourLovers.json b/sopel_modules/SpiceBot_Configs/sherlock/ColourLovers.json new file mode 100644 index 0000000..460868d --- /dev/null +++ b/sopel_modules/SpiceBot_Configs/sherlock/ColourLovers.json @@ -0,0 +1,5 @@ +{ +"url": "https://www.colourlovers.com/love/{}", +"errorType": "message", +"errorMsg": "Page Not Loved" +} diff --git a/sopel_modules/SpiceBot_Configs/sherlock/Contently.json b/sopel_modules/SpiceBot_Configs/sherlock/Contently.json new file mode 100644 index 0000000..d1858d7 --- /dev/null +++ b/sopel_modules/SpiceBot_Configs/sherlock/Contently.json @@ -0,0 +1,6 @@ +{ +"url": "https://{}.contently.com/", +"errorType": "message", +"errorMsg": "We can't find that page!", +"noPeriod": "True" +} diff --git a/sopel_modules/SpiceBot_Configs/sherlock/Designspiration.json b/sopel_modules/SpiceBot_Configs/sherlock/Designspiration.json new file mode 100644 index 0000000..938072b --- /dev/null +++ b/sopel_modules/SpiceBot_Configs/sherlock/Designspiration.json @@ -0,0 +1,5 @@ +{ +"url": "https://www.designspiration.net/{}", +"errorType": "message", +"errorMsg": "Content Not Found" +} diff --git a/sopel_modules/SpiceBot_Configs/sherlock/Ebay.json b/sopel_modules/SpiceBot_Configs/sherlock/Ebay.json new file mode 100644 index 0000000..43b284f --- /dev/null +++ b/sopel_modules/SpiceBot_Configs/sherlock/Ebay.json @@ -0,0 +1,5 @@ +{ +"url": "https://www.ebay.com/usr/{}", +"errorType": "message", +"errorMsg": "The User ID you entered was not found" +} diff --git a/sopel_modules/SpiceBot_Configs/sherlock/Ello.json b/sopel_modules/SpiceBot_Configs/sherlock/Ello.json new file mode 100644 index 0000000..9445173 --- /dev/null +++ b/sopel_modules/SpiceBot_Configs/sherlock/Ello.json @@ -0,0 +1,5 @@ +{ +"url": "https://ello.co/{}", +"errorType": "message", +"errorMsg": "We couldn't find the page you're looking for" +} diff --git a/sopel_modules/SpiceBot_Configs/sherlock/Flickr.json b/sopel_modules/SpiceBot_Configs/sherlock/Flickr.json new file mode 100644 index 0000000..50ba923 --- /dev/null +++ b/sopel_modules/SpiceBot_Configs/sherlock/Flickr.json @@ -0,0 +1,4 @@ +{ +"url": "https://www.flickr.com/people/{}", +"errorType": "status_code" +} diff --git a/sopel_modules/SpiceBot_Configs/sherlock/HackerNews.json b/sopel_modules/SpiceBot_Configs/sherlock/HackerNews.json new file mode 100644 index 0000000..5b34d7b --- /dev/null +++ b/sopel_modules/SpiceBot_Configs/sherlock/HackerNews.json @@ -0,0 +1,5 @@ +{ +"url": "https://news.ycombinator.com/user?id={}", +"errorType": "message", +"errorMsg": "No such user." +} diff --git a/sopel_modules/SpiceBot_Configs/sherlock/HackerOne.json b/sopel_modules/SpiceBot_Configs/sherlock/HackerOne.json new file mode 100644 index 0000000..8cedfc4 --- /dev/null +++ b/sopel_modules/SpiceBot_Configs/sherlock/HackerOne.json @@ -0,0 +1,5 @@ +{ +"url": "https://hackerone.com/{}", +"errorType": "message", +"errorMsg": "Page not found" +} diff --git a/sopel_modules/SpiceBot_Configs/sherlock/Houzz.json b/sopel_modules/SpiceBot_Configs/sherlock/Houzz.json new file mode 100644 index 0000000..dd5c35c --- /dev/null +++ b/sopel_modules/SpiceBot_Configs/sherlock/Houzz.json @@ -0,0 +1,5 @@ +{ +"url": "https://houzz.com/user/{}", +"errorType": "message", +"errorMsg": "The page you requested was not found." +} diff --git a/sopel_modules/SpiceBot_Configs/sherlock/IFTTT.json b/sopel_modules/SpiceBot_Configs/sherlock/IFTTT.json new file mode 100644 index 0000000..6389e03 --- /dev/null +++ b/sopel_modules/SpiceBot_Configs/sherlock/IFTTT.json @@ -0,0 +1,5 @@ +{ +"url": "https://www.ifttt.com/p/{}", +"errorType": "message", +"errorMsg": "The requested page or file does not exist" +} diff --git a/sopel_modules/SpiceBot_Configs/sherlock/Pexels.json b/sopel_modules/SpiceBot_Configs/sherlock/Pexels.json new file mode 100644 index 0000000..d935f22 --- /dev/null +++ b/sopel_modules/SpiceBot_Configs/sherlock/Pexels.json @@ -0,0 +1,5 @@ +{ +"url": "https://www.pexels.com/@{}", +"errorType": "message", +"errorMsg": "Ouch, something went wrong!" +} diff --git a/sopel_modules/SpiceBot_Configs/sherlock/ReverbNation.json b/sopel_modules/SpiceBot_Configs/sherlock/ReverbNation.json new file mode 100644 index 0000000..fe9f1f3 --- /dev/null +++ b/sopel_modules/SpiceBot_Configs/sherlock/ReverbNation.json @@ -0,0 +1,5 @@ +{ +"url": "https://www.reverbnation.com/{}", +"errorType": "message", +"errorMsg": "Sorry, we couldn't find that page" +} diff --git a/sopel_modules/SpiceBot_Configs/sherlock/Slack.json b/sopel_modules/SpiceBot_Configs/sherlock/Slack.json new file mode 100644 index 0000000..665a35c --- /dev/null +++ b/sopel_modules/SpiceBot_Configs/sherlock/Slack.json @@ -0,0 +1,5 @@ +{ +"url": "https://{}.slack.com", +"errorType": "status_code", +"noPeriod": "True" +} diff --git a/sopel_modules/SpiceBot_Configs/sherlock/Tinder.json b/sopel_modules/SpiceBot_Configs/sherlock/Tinder.json new file mode 100644 index 0000000..d243de3 --- /dev/null +++ b/sopel_modules/SpiceBot_Configs/sherlock/Tinder.json @@ -0,0 +1,5 @@ +{ +"url": "https://www.gotinder.com/@{}", +"errorType": "message", +"errorMsg": "Looking for Someone?" +} diff --git a/sopel_modules/SpiceBot_Configs/sherlock/Trip.json b/sopel_modules/SpiceBot_Configs/sherlock/Trip.json new file mode 100644 index 0000000..d7b2016 --- /dev/null +++ b/sopel_modules/SpiceBot_Configs/sherlock/Trip.json @@ -0,0 +1,5 @@ +{ +"url": "https://www.trip.skyscanner.com/user/{}", +"errorType": "message", +"errorMsg": "Page not found" +} diff --git a/sopel_modules/SpiceBot_Configs/sherlock/Unsplash.json b/sopel_modules/SpiceBot_Configs/sherlock/Unsplash.json new file mode 100644 index 0000000..674dc26 --- /dev/null +++ b/sopel_modules/SpiceBot_Configs/sherlock/Unsplash.json @@ -0,0 +1,4 @@ +{ +"url": "https://unsplash.com/@{}", +"errorType": "status_code" +} diff --git a/sopel_modules/SpiceBot_Configs/sherlock/WeHeartIt.json b/sopel_modules/SpiceBot_Configs/sherlock/WeHeartIt.json new file mode 100644 index 0000000..4c36735 --- /dev/null +++ b/sopel_modules/SpiceBot_Configs/sherlock/WeHeartIt.json @@ -0,0 +1,5 @@ +{ +"url": "https://weheartit.com/{}", +"errorType": "message", +"errorMsg": "Oops! You've landed on a moving target!" +} diff --git a/sopel_modules/SpiceBot_Configs/sherlock/WordPress.json b/sopel_modules/SpiceBot_Configs/sherlock/WordPress.json new file mode 100644 index 0000000..f50bcb4 --- /dev/null +++ b/sopel_modules/SpiceBot_Configs/sherlock/WordPress.json @@ -0,0 +1,6 @@ +{ +"url": "https://{}.wordpress.com", +"errorType": "response_url", +"errorUrl": "wordpress.com/typo/?subdomain=", +"noPeriod": "True" +} diff --git a/sopel_modules/SpiceBot_Configs/sherlock/devRant.json b/sopel_modules/SpiceBot_Configs/sherlock/devRant.json new file mode 100644 index 0000000..3463f4c --- /dev/null +++ b/sopel_modules/SpiceBot_Configs/sherlock/devRant.json @@ -0,0 +1,5 @@ +{ +"url": "https://devrant.com/users/{}", +"errorType": "response_url", +"errorUrl": "https://devrant.com/" +}