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] """