fix 交互命令重启

This commit is contained in:
thsrite 2023-09-09 20:01:43 +08:00
parent 20f35854f9
commit af6cf306c8

View File

@ -18,6 +18,7 @@ from app.log import logger
from app.schemas.types import EventType, MessageChannel from app.schemas.types import EventType, MessageChannel
from app.utils.object import ObjectUtils from app.utils.object import ObjectUtils
from app.utils.singleton import Singleton from app.utils.singleton import Singleton
from app.utils.system import SystemUtils
class CommandChian(ChainBase): class CommandChian(ChainBase):
@ -128,6 +129,12 @@ class Command(metaclass=Singleton):
"description": "清理缓存", "description": "清理缓存",
"category": "管理", "category": "管理",
"data": {} "data": {}
},
"/restart": {
"func": SystemUtils.restart,
"description": "重启系统",
"category": "管理",
"data": {}
} }
} }
# 汇总插件命令 # 汇总插件命令