From 1cb3b27c59b0e2097be2d0b5e74b9f79deb1ba58 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Wed, 5 Jun 2019 10:38:35 -0400 Subject: [PATCH] fix ai --- sopel_modules/SpiceBot/AI.py | 2 +- sopel_modules/SpiceBot/Config.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/sopel_modules/SpiceBot/AI.py b/sopel_modules/SpiceBot/AI.py index e3fb333..44a994e 100644 --- a/sopel_modules/SpiceBot/AI.py +++ b/sopel_modules/SpiceBot/AI.py @@ -49,7 +49,7 @@ class SpiceBot_AI(): def setup_ai(self): botconfig.define_section("SpiceBot_AI", SpiceBot_AI_MainSection, validate=False) - botconfig.aibrain = os.path.join(botconfig.homedir, botconfig.basename + '.aibrain.brn') + botconfig.config.aibrain = os.path.join(botconfig.homedir, botconfig.basename + '.aibrain.brn') def load_saved_brain(self): if os.path.isfile(botconfig.config.aibrain): diff --git a/sopel_modules/SpiceBot/Config.py b/sopel_modules/SpiceBot/Config.py index 983ea1f..b7f9bb5 100644 --- a/sopel_modules/SpiceBot/Config.py +++ b/sopel_modules/SpiceBot/Config.py @@ -12,9 +12,7 @@ import configparser class BotConfig(): def __init__(self): - self.dict = {} - # Load config parser = build_parser() if not len(sys.argv[1:]):