动态auth完成。
This commit is contained in:
8
robot.py
8
robot.py
@@ -68,10 +68,6 @@ class Robot:
|
||||
self.allContacts = {} # 将在登录后填充
|
||||
|
||||
self.groups = {} # 存储按group_id分组的消息列表,每个group_id最多保留10条消息
|
||||
GroupBotManager.load_local_cache()
|
||||
|
||||
# 权限模块加载
|
||||
self.gbm = GroupBotManager()
|
||||
|
||||
# 初始化插件系统
|
||||
self.LOG.info("开始初始化插件系统...")
|
||||
@@ -94,6 +90,10 @@ class Robot:
|
||||
|
||||
# 加载插件
|
||||
self.LOG.info("插件系统初始化完成")
|
||||
|
||||
GroupBotManager.load_local_cache()
|
||||
# 权限模块加载
|
||||
self.gbm = GroupBotManager()
|
||||
self.email_sender = EmailSender(
|
||||
smtp_server=self.config.email.get("smtp_server", "smtp.163.com"),
|
||||
smtp_port=self.config.email.get("smtp_port", 465),
|
||||
|
||||
Reference in New Issue
Block a user