fix 交互重启完发送消息,交互获取当前版本

This commit is contained in:
thsrite
2023-10-17 15:10:02 +08:00
parent 08e0df1abc
commit 0e92e9fc60
3 changed files with 115 additions and 2 deletions

View File

@ -142,6 +142,12 @@ class Command(metaclass=Singleton):
"description": "重启系统",
"category": "管理",
"data": {}
},
"/version": {
"func": SystemChain(self._db).version,
"description": "当前版本",
"category": "管理",
"data": {}
}
}
# 汇总插件命令
@ -163,6 +169,8 @@ class Command(metaclass=Singleton):
self._thread = Thread(target=self.__run)
# 启动事件处理线程
self._thread.start()
# 重启msg
SystemChain(self._db).restart_finish()
def __run(self):
"""