From aa52033cd8bf47707b9c779955e117db888c9c10 Mon Sep 17 00:00:00 2001 From: KimigaiiWuyi <444835641@qq.com> Date: Sat, 5 Oct 2024 02:09:17 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=E5=AF=B9prefix=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E5=8E=BB=E9=87=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gsuid_core/help/draw_new_plugin_help.py | 2 +- gsuid_core/sv.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gsuid_core/help/draw_new_plugin_help.py b/gsuid_core/help/draw_new_plugin_help.py index a7d83e2..3c138f3 100644 --- a/gsuid_core/help/draw_new_plugin_help.py +++ b/gsuid_core/help/draw_new_plugin_help.py @@ -125,7 +125,7 @@ async def get_new_help( banner_h = banner_bg.size[1] # 绘制banner banner_bg.paste(plugin_icon, (89, banner_h - 212), plugin_icon) - banner_draw = ImageDraw.Draw(banner_bg) + banner_draw: ImageDraw.ImageDraw = ImageDraw.Draw(banner_bg) _banner_name = plugin_name + '帮助' banner_draw.text( diff --git a/gsuid_core/sv.py b/gsuid_core/sv.py index 271a3ff..83f352f 100644 --- a/gsuid_core/sv.py +++ b/gsuid_core/sv.py @@ -344,6 +344,8 @@ class SV: for _i in self.plugins.force_prefix: _pp.append(_i) + # 去重 + _pp = list(set(_pp)) for _k in keyword_list: if prefix and _pp: for _p in _pp: