From af6cf306c88f8b67fa6d084d66c78d56a61dbefd Mon Sep 17 00:00:00 2001 From: thsrite Date: Sat, 9 Sep 2023 20:01:43 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BA=A4=E4=BA=92=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E9=87=8D=E5=90=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/command.py | 7 +++++++ 1 file changed, 7 insertions(+) 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": {} } } # 汇总插件命令