From 5f9748582dd3c74cf5d8ed584b55af014d2de3d5 Mon Sep 17 00:00:00 2001 From: yajiwa <839790708@qq.com> Date: Sat, 15 Apr 2023 13:55:26 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E5=B8=AE=E5=8A=A9?= =?UTF-8?q?=E5=91=BD=E4=BB=A4=E6=97=A5=E5=BF=97=E8=BF=87=E9=95=BF=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- basic_plugins/help/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/basic_plugins/help/__init__.py b/basic_plugins/help/__init__.py index 3e2a9a2c..d804cf08 100755 --- a/basic_plugins/help/__init__.py +++ b/basic_plugins/help/__init__.py @@ -42,9 +42,9 @@ async def _(bot: Bot, event: MessageEvent, arg: Message = CommandArg()): if str(event.user_id) in bot.config.superusers: is_super = True msg = msg.replace("-super", "").strip() - msg = get_plugin_help(msg, is_super) - if msg: - await simple_help.send(image(b64=msg)) + img_msg = get_plugin_help(msg, is_super) + if img_msg: + await simple_help.send(image(b64=img_msg)) else: await simple_help.send("没有此功能的帮助信息...") logger.info(