1.删除原有music内容,使用插件music;
2.新建插件,秀人图功能
This commit is contained in:
@@ -103,30 +103,7 @@ class StatsDashboardPlugin(PluginInterface):
|
||||
return content.strip().startswith("/stats")
|
||||
|
||||
def process_message(self, message: Dict[str, Any]) -> Tuple[bool, str]:
|
||||
"""处理消息"""
|
||||
# 暂时不启用指令
|
||||
return False, ""
|
||||
# content = str(message.get("content", "")).strip()
|
||||
# if content == "/stats start":
|
||||
# if self.start_server():
|
||||
# return True, "统计看板服务器已启动"
|
||||
# else:
|
||||
# return False, "启动统计看板服务器失败"
|
||||
#
|
||||
# elif content == "/stats stop":
|
||||
# if self.stop_server():
|
||||
# return True, "统计看板服务器已停止"
|
||||
# else:
|
||||
# return False, "停止统计看板服务器失败"
|
||||
#
|
||||
# elif content == "/stats status":
|
||||
# if self.server_thread and self.server_thread.is_alive():
|
||||
# return True, f"统计看板服务器正在运行,访问地址: http://{self.config['host']}:{self.config['port']}"
|
||||
# else:
|
||||
# return True, "统计看板服务器未运行"
|
||||
#
|
||||
# else:
|
||||
# return True, f"统计看板命令格式错误,可用命令:\n/stats start - 启动服务器\n/stats stop - 停止服务器\n/stats status - 查看状态"
|
||||
|
||||
def shutdown(self) -> None:
|
||||
"""关闭插件"""
|
||||
|
||||
Reference in New Issue
Block a user