This commit is contained in:
deathbybandaid 2019-09-20 15:27:03 -04:00
parent 1d85859124
commit acf1f8ebe5
3 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ class BotGif():
self.dir_to_scan = botread.get_config_dirs("SpiceBot_Gif")
valid_gif_api_dict = botread.json_to_dict(self.dir_to_scan, "Gif API", "SpiceBot_Gif")
valid_gif_api_dict = botread.json_to_dict_simple(self.dir_to_scan, "Gif API", "SpiceBot_Gif")
"""
15:02 <+Exirel> `channel_section = getattr(bot.config, 'channel', None)`

View File

@ -25,7 +25,7 @@ class Search():
self.header = {'User-Agent': str(UserAgent().chrome)}
self.setup_search()
self.dir_to_scan = botread.get_config_dirs("SpiceBot_Search")
valid_search_api_dict = botread.json_to_dict(self.dir_to_scan, "Search API", "SpiceBot_Search")
valid_search_api_dict = botread.json_to_dict_simple(self.dir_to_scan, "Search API", "SpiceBot_Search")
self.valid_api = {}
self.cache = {}

View File

@ -25,7 +25,7 @@ class Sherlock():
dir_to_scan = botread.get_config_dirs("SpiceBot_Sherlock")
valid_usernames_dict = botread.json_to_dict(dir_to_scan, "Sherlock", "SpiceBot_Sherlock")
valid_usernames_dict = botread.json_to_dict_simple(dir_to_scan, "Sherlock", "SpiceBot_Sherlock")
for social_network in list(valid_usernames_dict.keys()):
self.dict[social_network] = valid_usernames_dict[social_network]