diff --git a/sopel_modules/SpiceBot_AI/AI_aiml.py b/sopel_modules/SpiceBot_AI/AI_aiml.py index 278b7ff..9af3c93 100644 --- a/sopel_modules/SpiceBot_AI/AI_aiml.py +++ b/sopel_modules/SpiceBot_AI/AI_aiml.py @@ -28,7 +28,7 @@ def bot_command_rule(bot, trigger): return if str(message).lower().startswith(str(bot.nick).lower()): - trigger_args, trigger_command = SpiceBot.prerun.trigger_args(trigger.args[1], 'nickname') + trigger_args, trigger_command = SpiceBot.prerun.trigger_args(message, 'nickname') if trigger_command in SpiceBot.commands.dict['commands']["nickname"].keys(): return