test
This commit is contained in:
parent
dc26f57808
commit
1d7ae4b1b1
@ -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
|
||||
|
||||
@ -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
|
||||
"""
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user