Archived
1
0
Fork 0

Update regex.py

This commit is contained in:
多羅狼 2023-07-14 20:02:45 +08:00 committed by GitHub
parent 85b7d1ea4e
commit 9feaf5a0b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,7 +79,7 @@ async def _(msg: Bot.MessageSession):
level='/'.join((str(ds) for ds in music['ds']))))])
@mai_regex.handle(re.compile(r"(?:id)?(\d+)\s?有什(么别|麼別)名"), desc='{maimai.help.maimai_regex.alias}')
@mai_regex.handle(re.compile(r"(?:id)?(\d+)\s?有什(么别|麼別)名", flags=re.I), desc='{maimai.help.maimai_regex.alias}')
async def _(msg: Bot.MessageSession):
sid = msg.matched_msg.groups()[0]
music = (await total_list.get()).by_id(sid)