From 969f7bde96a28484927f61cb64e4eb7471b32e61 Mon Sep 17 00:00:00 2001 From: CMHopeSunshine <277073121@qq.com> Date: Wed, 8 Nov 2023 17:51:46 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E6=89=98=E5=B8=95?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=9F=A5=E8=AF=A2=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LittlePaimon/plugins/star_rail_info/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LittlePaimon/plugins/star_rail_info/__init__.py b/LittlePaimon/plugins/star_rail_info/__init__.py index 9389940..11c0a13 100644 --- a/LittlePaimon/plugins/star_rail_info/__init__.py +++ b/LittlePaimon/plugins/star_rail_info/__init__.py @@ -2,6 +2,7 @@ from nonebot import on_command from nonebot.params import CommandArg from nonebot.plugin import PluginMetadata from nonebot.adapters.onebot.v11 import Message, MessageEvent +from nonebot.adapters.onebot.utils import rich_unescape from LittlePaimon.utils.message import MessageBuild from .data_handle import set_uid, get_uid, update_info, get_info @@ -47,7 +48,7 @@ async def panel_cmd_handler(event: MessageEvent, args: Message = CommandArg()): user_id = str(at_msg[0].data['qq']) else: user_id = str(event.user_id) - name = args.extract_plain_text().strip() + name = rich_unescape(args.extract_plain_text().strip()) if not name: await panel_cmd.finish("请给出要查询的角色名全称~") uid = get_uid(user_id)