Merge remote-tracking branch 'origin/v2' into v2

This commit is contained in:
jxxghp
2024-10-23 17:05:28 +08:00
+9 -9
View File
@@ -24,12 +24,16 @@ class CommandChain(ChainBase, metaclass=Singleton):
"""
全局命令管理,消费事件
"""
def __init__(self):
# 插件管理器
super().__init__()
# 注册的命令集合
_registered_commands = {}
self._registered_commands = {}
# 所有命令集合
_commands = {}
self._commands = {}
# 内建命令集合
_preset_commands = {
self._preset_commands = {
"/cookiecloud": {
"id": "cookiecloud",
"type": "scheduler",
@@ -128,13 +132,9 @@ class CommandChain(ChainBase, metaclass=Singleton):
}
}
# 插件命令集合
_plugin_commands = {}
self._plugin_commands = {}
# 其他命令集合
_other_commands = {}
def __init__(self):
# 插件管理器
super().__init__()
self._other_commands = {}
# 初始化锁
self._rlock = threading.RLock()
# 插件管理