test
This commit is contained in:
parent
e8a3756efc
commit
0d34f8ad85
@ -272,7 +272,6 @@ class Commands():
|
||||
else:
|
||||
trigger_command = full_trigger_str.split(" ")[0]
|
||||
trigger_str = " ".join([x.strip() for x in full_trigger_str.split(" ")[1:]])
|
||||
print("[%s]" % trigger_str)
|
||||
|
||||
command_types = ["command", "nickname_command", "action_command"]
|
||||
# Assume same command type until proven otherwise
|
||||
@ -308,7 +307,8 @@ class Commands():
|
||||
trigger_type = assumed_trigger_type
|
||||
trigger_prefix = assumed_trigger_prefix
|
||||
|
||||
if not full_trigger_str.isspace() and full_trigger_str not in ['', None]:
|
||||
if (not full_trigger_str.isspace() and full_trigger_str not in ['', None]
|
||||
and not trigger_command.isspace() and trigger_command not in ['', None]):
|
||||
|
||||
commands.append({
|
||||
"trigger_type": trigger_type,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user