mirror of
https://github.com/TeamPGM/PagerMaid-Pyro.git
synced 2024-11-22 04:39:15 +00:00
🚑️ hotfix: get arguments bug
This commit is contained in:
parent
01c38f3411
commit
6f11e68171
@ -61,7 +61,7 @@ def listener(**args):
|
|||||||
else:
|
else:
|
||||||
block_process = True
|
block_process = True
|
||||||
pattern = fr"^(,|,){alias_command(command, disallow_alias)}(?: |$)([\s\S]*)"
|
pattern = fr"^(,|,){alias_command(command, disallow_alias)}(?: |$)([\s\S]*)"
|
||||||
sudo_pattern = fr"^/{alias_command(command, disallow_alias)}(?: |$)([\s\S]*)"
|
sudo_pattern = fr"^(/){alias_command(command, disallow_alias)}(?: |$)([\s\S]*)"
|
||||||
if pattern is not None and not pattern.startswith("(?i)"):
|
if pattern is not None and not pattern.startswith("(?i)"):
|
||||||
args["pattern"] = f"(?i){pattern}"
|
args["pattern"] = f"(?i){pattern}"
|
||||||
else:
|
else:
|
||||||
@ -122,11 +122,11 @@ def listener(**args):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
try:
|
try:
|
||||||
parameter = message.matches[0].group(1).split(" ")
|
parameter = message.matches[0].group(2).split(" ")
|
||||||
if parameter == [""]:
|
if parameter == [""]:
|
||||||
parameter = []
|
parameter = []
|
||||||
message.parameter = parameter
|
message.parameter = parameter
|
||||||
message.arguments = message.matches[0].group(1)
|
message.arguments = message.matches[0].group(2)
|
||||||
except BaseException:
|
except BaseException:
|
||||||
message.parameter = None
|
message.parameter = None
|
||||||
message.arguments = None
|
message.arguments = None
|
||||||
|
Loading…
Reference in New Issue
Block a user