update: 修改模块结构
This commit is contained in:
@@ -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中的成员
|
||||
|
||||
Reference in New Issue
Block a user