优化插件管理内容

This commit is contained in:
liuwei
2025-03-19 14:28:23 +08:00
parent cb87ca4921
commit 0ed506a6a4
5 changed files with 6 additions and 6 deletions

View File

@@ -17,7 +17,7 @@ class MessageSummaryPlugin(MessagePluginInterface):
@property
def name(self) -> str:
return "群聊消息总结"
return "群聊消息总结[message_summary]"
@property
def version(self) -> str:

View File

@@ -16,7 +16,7 @@ class MusicPlugin(MessagePluginInterface):
@property
def name(self) -> str:
return "音乐点播"
return "音乐点播[music]"
@property
def version(self) -> str:

View File

@@ -16,7 +16,7 @@ class PluginManagerPlugin(MessagePluginInterface):
@property
def name(self) -> str:
return "插件管理"
return "插件管理[plugin_manager]"
@property
def version(self) -> str:
@@ -159,7 +159,7 @@ class PluginManagerPlugin(MessagePluginInterface):
message = "-----Bot-----\n📋 插件列表:\n"
for plugin in plugins:
status = "✅ 已启用" if plugin.status == PluginStatus.RUNNING else "❌ 已禁用"
message += f"{plugin.name} v{plugin.version} - {status}\n"
message += f"{status}-{plugin.name}\n"
wcf.send_text(message, (roomid if roomid else sender), sender)
return True, "列出插件成功"

View File

@@ -17,7 +17,7 @@ class StatsCollectorPlugin(PluginInterface):
@property
def name(self) -> str:
return "群聊指令数据记录"
return "群聊指令记录[stats_collector]"
@property
def version(self) -> str:

View File

@@ -11,7 +11,7 @@ class StatsDashboardPlugin(PluginInterface):
@property
def name(self) -> str:
return "统计看板"
return "统计看板[stats_dashboard]"
@property
def version(self) -> str: