From 8f5de7a73812676db7a6e319f64b816a59159dbc Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Fri, 20 Sep 2019 11:53:18 -0400 Subject: [PATCH] SpiceBot_Search --- sopel_modules/SpiceBot/Search.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sopel_modules/SpiceBot/Search.py b/sopel_modules/SpiceBot/Search.py index c8006fb..7e51827 100644 --- a/sopel_modules/SpiceBot/Search.py +++ b/sopel_modules/SpiceBot/Search.py @@ -87,7 +87,7 @@ class Search(): def search_info_google(self, searchdict, retry=False): lookfor = searchdict["searchquery"] - if not botconfig.SpiceBot_Google.search_api or retry: + if not botconfig.SpiceBot_Search.search_api or retry: try: var = requests.get(r'http://www.google.com/search?q=' + lookfor + '&btnI', headers=self.header) except Exception as e: @@ -101,7 +101,7 @@ class Search(): def search_maps_google(self, searchdict, retry=False): lookfor = searchdict["searchquery"] - if not botconfig.SpiceBot_Google.search_api or retry: + if not botconfig.SpiceBot_Search.search_api or retry: try: var = requests.get(r'http://www.google.com/maps/place/' + lookfor, headers=self.header) except Exception as e: @@ -115,7 +115,7 @@ class Search(): def search_youtube(self, searchdict, retry=False): lookfor = searchdict["searchquery"] - if not botconfig.SpiceBot_Google.search_api or retry: + if not botconfig.SpiceBot_Search.search_api or retry: try: var = requests.get(r'https://www.youtube.com/search?q=' + lookfor + '&btnI', headers=self.header) except Exception as e: