mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-09 01:16:50 +08:00
Merge remote-tracking branch 'origin/v2' into v2
This commit is contained in:
@@ -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": {
|
"/cookiecloud": {
|
||||||
"id": "cookiecloud",
|
"id": "cookiecloud",
|
||||||
"type": "scheduler",
|
"type": "scheduler",
|
||||||
@@ -128,13 +132,9 @@ class CommandChain(ChainBase, metaclass=Singleton):
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
# 插件命令集合
|
# 插件命令集合
|
||||||
_plugin_commands = {}
|
self._plugin_commands = {}
|
||||||
# 其他命令集合
|
# 其他命令集合
|
||||||
_other_commands = {}
|
self._other_commands = {}
|
||||||
|
|
||||||
def __init__(self):
|
|
||||||
# 插件管理器
|
|
||||||
super().__init__()
|
|
||||||
# 初始化锁
|
# 初始化锁
|
||||||
self._rlock = threading.RLock()
|
self._rlock = threading.RLock()
|
||||||
# 插件管理
|
# 插件管理
|
||||||
|
|||||||
Reference in New Issue
Block a user