summaryrefslogtreecommitdiff
path: root/ATRI
diff options
context:
space:
mode:
Diffstat (limited to 'ATRI')
-rw-r--r--ATRI/plugins/help/data_source.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/ATRI/plugins/help/data_source.py b/ATRI/plugins/help/data_source.py
index da9432a..f96d59e 100644
--- a/ATRI/plugins/help/data_source.py
+++ b/ATRI/plugins/help/data_source.py
@@ -63,8 +63,19 @@ class Helper(Service):
f = os.path.join(SERVICES_DIR, f)
with open(f, "r", encoding="utf-8") as r:
service = json.load(r)
- services.append([prefix, "√" if service["enabled"] else "×", "√" if service["only_admin"] else "×"])
- table = tabulate(services, headers=["服务名称", "开启状态", "仅支持管理员"], tablefmt="plain", showindex=True)
+ services.append(
+ [
+ prefix,
+ "√" if service["enabled"] else "×",
+ "√" if service["only_admin"] else "×",
+ ]
+ )
+ table = tabulate(
+ services,
+ headers=["服务名称", "开启状态", "仅支持管理员"],
+ tablefmt="plain",
+ showindex=True,
+ )
repo = f"咱搭载了以下服务~\n{table}\n@bot 帮助 [服务] -以查看对应服务帮助"
return repo