fix char name

This commit is contained in:
baiqwerdvd 2024-04-09 15:06:41 +08:00
parent f7abecab32
commit 0059e0dbe7
No known key found for this signature in database
GPG Key ID: 7717E46E1797411A

View File

@ -34,7 +34,7 @@ async def text2pic(text: str, max_size: int = 800, font_size: int = 20):
@sv_sr_wiki.on_prefix("ark角色图鉴") @sv_sr_wiki.on_prefix("ark角色图鉴")
async def send_role_wiki_pic(bot: Bot, ev: Event): async def send_role_wiki_pic(bot: Bot, ev: Event):
char_name = "".join(re.findall("[\u4e00-\u9fa5]+", ev.text)) char_name = ev.text[1:] if ev.text[0] == " " else ev.text
logger.info(char_name) logger.info(char_name)
char_id = None char_id = None