diff --git a/sopel_modules/SpiceBot/AI.py b/sopel_modules/SpiceBot/AI.py index 8d530e6..0c7bfe5 100644 --- a/sopel_modules/SpiceBot/AI.py +++ b/sopel_modules/SpiceBot/AI.py @@ -19,15 +19,12 @@ class SpiceBot_AI(): self.aiml_kernel._verboseMode = False # Learn responses import sopel_modules - initial_dir = os.getcwd() for plugin_dir in set(sopel_modules.__path__): configsdir = os.path.join(plugin_dir, "SpiceBot_Configs") aimldir = os.path.join(configsdir, "aiml") aimlstarter = os.path.join(aimldir, "std-startup.xml") - os.chdir(configsdir) self.aiml_kernel.learn(aimlstarter) self.aiml_kernel.respond("LOAD AIML B") - os.chdir(initial_dir) def on_message(self, message): aiml_response = self.aiml_kernel.respond(message)