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