Archived
1
0
Fork 0

update maimai

This commit is contained in:
多羅狼 2024-01-01 16:32:32 +08:00 committed by GitHub
parent 253d29c418
commit b074524467
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -285,7 +285,7 @@ async def _(msg: Bot.MessageSession, plate: str, username: str = None):
await msg.finish(msg.locale.t("maimai.message.no_username"))
payload = {'username': username}
if plate == '真将' or (plate[1] == '' and plate[0] != ''):
if plate in ['真将', '真將'] or (plate[1] == '' and plate[0] != ''):
await msg.finish(msg.locale.t('maimai.message.plate.plate_not_found'))
output, get_img = await get_plate_process(msg, payload, plate)

View file

@ -163,7 +163,7 @@ async def _(msg: Bot.MessageSession):
await msg.finish(msg.locale.t("maimai.message.no_username"))
payload = {'username': username}
if plate == '真将' or (plate[1] == '' and plate[0] != ''):
if plate in ['真将', '真將'] or (plate[1] == '' and plate[0] != ''):
return
output, get_img = await get_plate_process(msg, payload, plate)
@ -208,7 +208,7 @@ async def _(msg: Bot.MessageSession):
await msg.finish(output.strip())
@mai_regex.regex(re.compile(r"(.+)\s?段位[认認]定"), desc='{maimai.help.maimai_regex.grade}')
@mai_regex.regex(re.compile(r"(.+)\s?段位[认認]定列?"), desc='{maimai.help.maimai_regex.grade}')
async def _(msg: Bot.MessageSession):
grade = msg.matched_msg.groups()[0]
await get_grade_info(msg, grade)