add 站点管理命令
This commit is contained in:
@ -5,6 +5,7 @@ from typing import Any
|
||||
from app.chain import ChainBase
|
||||
from app.chain.cookiecloud import CookieCloudChain
|
||||
from app.chain.douban_sync import DoubanSyncChain
|
||||
from app.chain.site_manage import SiteManageChain
|
||||
from app.chain.subscribe import SubscribeChain
|
||||
from app.chain.transfer import TransferChain
|
||||
from app.core.event import eventmanager, EventManager
|
||||
@ -77,6 +78,16 @@ class Command(metaclass=Singleton):
|
||||
"func": TransferChain().process,
|
||||
"description": "下载文件整理",
|
||||
"data": {}
|
||||
},
|
||||
"/sites": {
|
||||
"func": SiteManageChain().process,
|
||||
"description": "查询站点",
|
||||
"data": {}
|
||||
},
|
||||
"/site_disable": {
|
||||
"func": SiteManageChain().disable,
|
||||
"description": "禁用站点",
|
||||
"data": {}
|
||||
}
|
||||
}
|
||||
plugin_commands = self.pluginmanager.get_plugin_commands()
|
||||
|
Reference in New Issue
Block a user