From 998e29ded61d286d656998565f2c2e5e167817bf Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Mon, 25 Sep 2023 13:43:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20myid=E6=98=BE=E7=A4=BA=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/command/command.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model/command/command.py b/model/command/command.py index de5abd5d0..7a06f8d8f 100644 --- a/model/command/command.py +++ b/model/command/command.py @@ -67,7 +67,7 @@ class Command: if self.command_start_with(message, "plugin"): return True, self.plugin_oper(message, role, cached_plugins, platform) - if self.command_start_with(message, "myid"): + if self.command_start_with(message, "myid") or self.command_start_with(message, "!myid"): return True, self.get_my_id(message_obj) if self.command_start_with(message, "nconf") or self.command_start_with(message, "newconf"): return True, self.get_new_conf(message, role) @@ -90,7 +90,7 @@ class Command: return True, f"网页搜索功能当前状态: {global_object['web_search']}", "web" def get_my_id(self, message_obj): - return True, f"{str(message_obj)}\n(此指令为开发专用,为提供更多数据,请自行从中找出您的频道ID。在author->id中。)", "plugin" + return True, f"你的ID:{str(message_obj.sender.tiny_id)}", "plugin" def get_new_conf(self, message, role): if role != "admin":