Merge pull request #528 from thsrite/main

This commit is contained in:
jxxghp 2023-09-09 20:17:09 +08:00 committed by GitHub
commit a7a0889867
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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": {}
} }
} }
# 汇总插件命令 # 汇总插件命令