From 372a204ba9f88e88d12b3439231ffa83cb93f07f Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Sun, 27 Aug 2023 19:25:39 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20QQ=E9=A2=91=E9=81=93=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=E6=94=AF=E6=8C=81myid=E6=8C=87=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/command/command.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/model/command/command.py b/model/command/command.py index b387f20b3..1b4c97ed1 100644 --- a/model/command/command.py +++ b/model/command/command.py @@ -66,11 +66,14 @@ class Command: return False, None def get_my_id(self, message_obj, platform): + print(message_obj) if platform == "gocq": if message_obj.type == "GuildMessage": return True, f"你的频道id是{str(message_obj.sender.tiny_id)}", "plugin" else: return True, f"你的QQ是{str(message_obj.sender.user_id)}", "plugin" + else: + return True, f"{str(message_obj)}\n(此指令为开发专用,为提供更多数据,请自行从中找出您的频道ID。在author->id中。)", "plugin" def get_new_conf(self, message, role, platform): if role != "admin":