From 2319c7eae2a06452085b71f067b9ad9b0a507c7e Mon Sep 17 00:00:00 2001 From: Rock Chin <1010553892@qq.com> Date: Tue, 17 Jan 2023 14:11:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=9D=9E=E6=BA=90=E7=A0=81=E6=8B=89?= =?UTF-8?q?=E5=8F=96=E5=AE=89=E8=A3=85=E7=9A=84plugin=E6=BA=90=E7=A0=81?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E8=BE=93=E5=87=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/qqbot/command.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/qqbot/command.py b/pkg/qqbot/command.py index 507856c1..5b7d3fdb 100644 --- a/pkg/qqbot/command.py +++ b/pkg/qqbot/command.py @@ -98,7 +98,9 @@ def plugin_operation(cmd, params, is_admin): plugin['version'], plugin['author']) if updater.is_repo("/".join(plugin['path'].split('/')[:-1])): - reply_str += "源码: "+updater.get_remote_url("/".join(plugin['path'].split('/')[:-1]))+"\n" + remote_url = updater.get_remote_url("/".join(plugin['path'].split('/')[:-1])) + if remote_url != "https://github.com/RockChinQ/QChatGPT" and remote_url != "https://gitee.com/RockChin/QChatGPT": + reply_str += "源码: "+remote_url+"\n" reply_str += "\n"