This commit is contained in:
deathbybandaid 2022-02-24 08:27:59 -05:00
parent 1c379093f7
commit 9a6465314c

View File

@ -19,9 +19,11 @@ def prerun(rulematch=False):
# Since there was more than one command,
# we are going to redispatch commands
# This will give sopel the appearance of recieving individual commands
bot.say(str(commands))
if len(commands) > 1:
for trigger_dict in commands:
bot.say("multi - dispatching %s %s" % (trigger_dict["trigger_command"], trigger_dict["trigger_str"]))
bot.say(str(trigger_dict))
sb.commands.dispatch(trigger_dict)
return