From 1b7e3141996c61cb19e2338de9b18da75349b775 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Fri, 31 May 2019 19:38:18 -0400 Subject: [PATCH] test --- sopel_modules/SpiceBot/AI.py | 2 ++ sopel_modules/SpiceBot_AI/AI_aiml.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sopel_modules/SpiceBot/AI.py b/sopel_modules/SpiceBot/AI.py index 1512422..d862ee0 100644 --- a/sopel_modules/SpiceBot/AI.py +++ b/sopel_modules/SpiceBot/AI.py @@ -34,3 +34,5 @@ class SpiceBot_AI(): def on_message(self, message): return self.aiml_kernel.respond(message.content) + +botai = SpiceBot_AI() diff --git a/sopel_modules/SpiceBot_AI/AI_aiml.py b/sopel_modules/SpiceBot_AI/AI_aiml.py index bb68731..33655a4 100644 --- a/sopel_modules/SpiceBot_AI/AI_aiml.py +++ b/sopel_modules/SpiceBot_AI/AI_aiml.py @@ -19,4 +19,4 @@ def bot_command_nick(bot, trigger): if str(trigger.args[1]).startswith((".", '?', '!')) or str(trigger.args[1]).lower().startswith(bot.nick.lower()): return - bot.osd(str(SpiceBot.AI.on_message(str(trigger.args[1])))) + bot.osd(str(SpiceBot.botai.on_message(str(trigger.args[1]))))