From decf1a24662f7da74a853aff273f6f6655f95ad0 Mon Sep 17 00:00:00 2001 From: taylor <=> Date: Sat, 12 Oct 2024 17:40:35 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maubot_llmplus/aibot.py b/maubot_llmplus/aibot.py index 3579d66..fe012e7 100644 --- a/maubot_llmplus/aibot.py +++ b/maubot_llmplus/aibot.py @@ -38,8 +38,8 @@ class AiBotPlugin(Plugin): # 加载并更新配置 self.config.load_and_update() # 决定当前机器人的名称 - self.name = self.config["name"] or \ - self.client.get_displayname(self.client.mxid) or \ + self.name = self.config['name'] or \ + await self.client.get_displayname(self.client.mxid) or \ self.client.parse_user_id(self.client.mxid)[0] """