This commit is contained in:
deathbybandaid 2022-02-22 15:31:17 -05:00
parent dc26f57808
commit 1d7ae4b1b1
2 changed files with 17 additions and 10 deletions

View File

@ -205,15 +205,22 @@ class Commands():
trigger_type = assumed_trigger_type
trigger_prefix = assumed_trigger_prefix
if not trigger_str.isspace():
commands.append({
"trigger_type": trigger_type,
"trigger_prefix": trigger_prefix,
"trigger_str": trigger_str,
"trigger_command": trigger_command,
"trigger_hostmask": trigger.hostmask,
"trigger_sender": trigger.sender
})
commands.append({
"trigger_type": trigger_type,
"trigger_prefix": trigger_prefix,
"trigger_str": trigger_str,
"trigger_command": trigger_command,
"trigger_hostmask": trigger.hostmask,
"trigger_sender": trigger.sender
})
print({
"trigger_type": trigger_type,
"trigger_prefix": trigger_prefix,
"trigger_str": trigger_str,
"trigger_command": trigger_command,
"trigger_hostmask": trigger.hostmask,
"trigger_sender": trigger.sender
})
return commands

View File

@ -5,7 +5,7 @@ from sopel_SpiceBot_Core_1 import sb
def pipe_split():
"""
This splits the given command by ` | ` and re-dispatches it internally to the bot.
This splits the given command by `|` and re-dispatches it internally to the bot.
This allows the output of a command to be sent
"""