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]))))