This commit is contained in:
a376148946 2023-09-18 12:50:53 +08:00 committed by qwerdvd
parent b745ead863
commit dff0ce37ac

View File

@ -103,19 +103,19 @@ async def send_char_info(bot: Bot, ev: Event):
async def _get_char_info(bot: Bot, ev: Event, text: str):
msg = ''.join(re.findall('^[a-zA-Z0-9_\u4e00-\u9fa5]+$', text))
if not msg:
return None
# 获取角色名
await bot.logger.info('开始执行[查询角色面板]')
# 获取uid
if '' in msg or '' in msg or '' in msg:
uid = await get_uid(bot, ev, False, True)
msg = ''.join(re.findall('^[a-zA-Z0-9_\u4e00-\u9fa5]+$', text))
else:
uid = await get_uid(bot, ev)
msg = ' '.join(re.findall('[\u4e00-\u9fa5]+', text))
if uid is None:
return await bot.send(UID_HINT)
if not msg:
return None
await bot.logger.info(f'[查询角色面板]uid: {uid}')
return await draw_char_info_img(msg, uid)