This commit is contained in:
deathbybandaid 2022-02-22 15:27:46 -05:00
parent 4826c6fe7f
commit dc26f57808

View File

@ -149,8 +149,6 @@ class Commands():
for full_trigger_str in triggers: for full_trigger_str in triggers:
if not full_trigger_str.isspace():
if full_trigger_str.startswith(tuple(self.config.prefix_list)): if full_trigger_str.startswith(tuple(self.config.prefix_list)):
trigger_type = "command" trigger_type = "command"
trigger_prefix = full_trigger_str[0] trigger_prefix = full_trigger_str[0]
@ -207,6 +205,8 @@ class Commands():
trigger_type = assumed_trigger_type trigger_type = assumed_trigger_type
trigger_prefix = assumed_trigger_prefix trigger_prefix = assumed_trigger_prefix
if not trigger_str.isspace():
commands.append({ commands.append({
"trigger_type": trigger_type, "trigger_type": trigger_type,
"trigger_prefix": trigger_prefix, "trigger_prefix": trigger_prefix,