summaryrefslogtreecommitdiff
path: root/ATRI/plugins/help
diff options
context:
space:
mode:
Diffstat (limited to 'ATRI/plugins/help')
-rw-r--r--ATRI/plugins/help/__init__.py6
-rw-r--r--ATRI/plugins/help/data_source.py6
2 files changed, 5 insertions, 7 deletions
diff --git a/ATRI/plugins/help/__init__.py b/ATRI/plugins/help/__init__.py
index 339ffa2..1d1102e 100644
--- a/ATRI/plugins/help/__init__.py
+++ b/ATRI/plugins/help/__init__.py
@@ -5,9 +5,7 @@ from ATRI.rule import to_bot
from .data_source import Helper
-main_help = Helper().on_command(
- "菜单", "获取食用bot的方法", rule=to_bot(), aliases={"/help", "menu"}
-)
+main_help = Helper().on_command("菜单", "获取食用bot的方法", rule=to_bot(), aliases={"menu"})
@main_help.handle()
@@ -34,7 +32,7 @@ async def _service_list(bot: Bot, event: MessageEvent):
await service_list.finish(repo)
-service_info = Helper().on_command("帮助", "获取服务详细帮助", rule=to_bot())
+service_info = Helper().on_command("帮助", "获取服务详细帮助", aliases={"help"}, rule=to_bot())
@service_info.handle()
diff --git a/ATRI/plugins/help/data_source.py b/ATRI/plugins/help/data_source.py
index 638bee2..7b2f6f8 100644
--- a/ATRI/plugins/help/data_source.py
+++ b/ATRI/plugins/help/data_source.py
@@ -9,7 +9,7 @@ from ATRI.exceptions import ReadFileError
SERVICE_INFO_FORMAT = """
服务名:{service}
说明:{docs}
-可用命令:\n{cmd_list}
+可用命令:\n {cmd_list}
是否全局启用:{enabled}
Tip: 帮助 [服务] [命令] 以查看对应命令详细信息
""".strip()
@@ -60,7 +60,7 @@ class Helper(Service):
temp_list.append(service)
msg0 = "咱搭载了以下服务~\n"
- services = " | ".join(map(str, temp_list))
+ services = "、".join(map(str, temp_list))
msg0 = msg0 + services
repo = msg0 + "\n@ 帮助 [服务] -以查看对应服务帮助"
return repo
@@ -77,7 +77,7 @@ class Helper(Service):
service_enabled = data.get("enabled", True)
_service_cmd_list = list(data.get("cmd_list", {"error"}))
- service_cmd_list = "\n".join(map(str, _service_cmd_list))
+ service_cmd_list = "、".join(map(str, _service_cmd_list))
repo = SERVICE_INFO_FORMAT.format(
service=service_name,