update maimai
This commit is contained in:
parent
253d29c418
commit
b074524467
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
Reference in a new issue