test
This commit is contained in:
parent
72fb598966
commit
0beb62eafd
@ -134,9 +134,8 @@ class Commands():
|
|||||||
else:
|
else:
|
||||||
first_trigger_type = "rule"
|
first_trigger_type = "rule"
|
||||||
first_trigger_prefix = None
|
first_trigger_prefix = None
|
||||||
first_trigger = first_full_trigger_str
|
first_trigger_command = first_full_trigger_str.split(" ")[0]
|
||||||
first_trigger_command = first_trigger_noprefix.split(" ")[0]
|
first_trigger_str = " ".join(first_full_trigger_str.split(" ")[1:])
|
||||||
first_trigger_str = " ".join(first_trigger_noprefix.split(" ")[1:])
|
|
||||||
|
|
||||||
commands.append({
|
commands.append({
|
||||||
"trigger_type": first_trigger_type,
|
"trigger_type": first_trigger_type,
|
||||||
@ -149,9 +148,6 @@ class Commands():
|
|||||||
|
|
||||||
for full_trigger_str in triggers:
|
for full_trigger_str in triggers:
|
||||||
|
|
||||||
trigger_command = first_trigger.split(" ")[0]
|
|
||||||
trigger_str = " ".join(first_trigger.split(" ")[1:])
|
|
||||||
|
|
||||||
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]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user