From 659395b3eb4370b256362334702740c5e18596ff Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Sat, 1 Jun 2019 13:51:24 -0400 Subject: [PATCH] test --- sopel_modules/SpiceBot/AI.py | 4 ++-- sopel_modules/SpiceBot_Core_Processing/AI.py | 2 +- sopel_modules/SpiceBot_Core_Processing/Modules.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sopel_modules/SpiceBot/AI.py b/sopel_modules/SpiceBot/AI.py index 8fbaec8..e9908a1 100644 --- a/sopel_modules/SpiceBot/AI.py +++ b/sopel_modules/SpiceBot/AI.py @@ -58,8 +58,8 @@ class SpiceBot_AI(): def learn(self, braindirs): for braindir in braindirs: dirnumber = max(self.load_commands) + 1 - for parsefile in os.listdir(braindir): - self.check_file_parse(parsefile) + # for parsefile in os.listdir(braindir): + # self.check_file_parse(parsefile) tempbrain = tempfile.mkstemp()[1] with open(tempbrain, 'w') as fileo: fileo.write( diff --git a/sopel_modules/SpiceBot_Core_Processing/AI.py b/sopel_modules/SpiceBot_Core_Processing/AI.py index 009e48b..cb214b8 100644 --- a/sopel_modules/SpiceBot_Core_Processing/AI.py +++ b/sopel_modules/SpiceBot_Core_Processing/AI.py @@ -10,7 +10,7 @@ import sopel_modules.SpiceBot as SpiceBot @sopel.module.event(SpiceBot.events.BOT_READY) @sopel.module.rule('.*') -def bot_events_complete(bot, trigger): +def bot_events_complete_ai(bot, trigger): if SpiceBot.botai.dict["counts"]: SpiceBot.logs.log('SpiceBot_AI', 'Registered %d %s files,' % (SpiceBot.botai.dict["counts"], 'aiml')) diff --git a/sopel_modules/SpiceBot_Core_Processing/Modules.py b/sopel_modules/SpiceBot_Core_Processing/Modules.py index 81b22d2..fa0303d 100644 --- a/sopel_modules/SpiceBot_Core_Processing/Modules.py +++ b/sopel_modules/SpiceBot_Core_Processing/Modules.py @@ -10,7 +10,7 @@ import sopel_modules.SpiceBot as SpiceBot @sopel.module.event(SpiceBot.events.BOT_READY) @sopel.module.rule('.*') -def bot_events_complete(bot, trigger): +def bot_events_complete_modules(bot, trigger): for comtype in SpiceBot.commands.dict['commands'].keys(): if comtype not in ['module', 'nickname', 'rule']: