update: 修改模块结构

This commit is contained in:
taylor
2024-10-12 17:36:25 +08:00
parent bbcfb6d445
commit b4890be7e5

View File

@@ -38,6 +38,9 @@ class AiBotPlugin(Plugin):
# 加载并更新配置 # 加载并更新配置
self.config.load_and_update() 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中的成员 判断sender是否是allowed_users中的成员