From 4adf869b505a570f5aa6bd6fdfd9fa9d889b1e23 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 6 Jun 2019 07:58:52 -0400 Subject: [PATCH] better handling --- sopel_modules/SpiceBot_AI/AI_aiml.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sopel_modules/SpiceBot_AI/AI_aiml.py b/sopel_modules/SpiceBot_AI/AI_aiml.py index 164619d..350468c 100644 --- a/sopel_modules/SpiceBot_AI/AI_aiml.py +++ b/sopel_modules/SpiceBot_AI/AI_aiml.py @@ -58,9 +58,9 @@ def bot_command_rule(bot, trigger): if trigger_command in SpiceBot.commands.dict['commands']["nickname"].keys(): return else: - command_type = 'module' - trigger_args, trigger_command = SpiceBot.prerun.trigger_args(message, 'module') - trigger_args.insert(0, trigger_command) + command_type = 'other' + trigger_args = spicemanip.main(message, 'create') + trigger_command = trigger_args[0] fulltrigger = spicemanip.main(trigger_args, 0) returnmessage = SpiceBot.botai.on_message(bot, trigger, message)