Archived
1
0
Fork 0

Update regex.py

This commit is contained in:
多羅狼 2023-06-23 11:02:15 +08:00 committed by GitHub
parent 1620354b2c
commit 2308f6751e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -141,7 +141,7 @@ async def _(msg: Bot.MessageSession):
@mai_regex.handle(re.compile(r"(.?)([極极将舞神者]舞?)([进進])度\s?(.+)?"), desc='{maimai.help.maimai_regex.plate}') @mai_regex.handle(re.compile(r"(.?)([極极将舞神者]舞?)([进進])度\s?(.+)?"), desc='{maimai.help.maimai_regex.plate}')
async def _(msg: Bot.MessageSession): async def _(msg: Bot.MessageSession):
plate = msg.matched_msg.groups()[:2] plate = msg.matched_msg.groups()[0] + msg.matched_msg.groups()[1]
username = msg.matched_msg.groups()[3] username = msg.matched_msg.groups()[3]
if username is None and msg.target.senderFrom == "QQ": if username is None and msg.target.senderFrom == "QQ":
payload = {'qq': msg.session.sender} payload = {'qq': msg.session.sender}
@ -191,4 +191,4 @@ async def _(msg: Bot.MessageSession):
await msg.finish(output.strip()) await msg.finish(output.strip())
else: else:
img = await msgchain2image([Plain(output)]) img = await msgchain2image([Plain(output)])
await msg.finish([BImage(img)]) await msg.finish([BImage(img)])