From b4890be7e5f66287d6b63e6fad6f50c9689cd2a9 Mon Sep 17 00:00:00 2001 From: taylor <=> Date: Sat, 12 Oct 2024 17:36:25 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E4=BF=AE=E6=94=B9=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- maubot_llmplus/aibot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/maubot_llmplus/aibot.py b/maubot_llmplus/aibot.py index bb758d9..3579d66 100644 --- a/maubot_llmplus/aibot.py +++ b/maubot_llmplus/aibot.py @@ -38,6 +38,9 @@ class AiBotPlugin(Plugin): # 加载并更新配置 self.config.load_and_update() # 决定当前机器人的名称 + self.name = self.config["name"] or \ + self.client.get_displayname(self.client.mxid) or \ + self.client.parse_user_id(self.client.mxid)[0] """ 判断sender是否是allowed_users中的成员