From 31f266bf21f5496fb43537a8a6cb2d76bbc9add0 Mon Sep 17 00:00:00 2001 From: snowy Date: Mon, 1 Apr 2024 13:06:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8F=AF=E4=BB=A5=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E5=8F=91=E9=80=81=E9=AB=98=E6=B8=85=E5=A4=A7=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- liteyuki/liteyuki_main/runtime.py | 10 +++++++--- liteyuki/resources/lang/de.lang | 1 + liteyuki/resources/lang/en.lang | 11 ++++++----- liteyuki/resources/lang/es.lang | 1 + liteyuki/resources/lang/fr.lang | 1 + liteyuki/resources/lang/ja.lang | 1 + liteyuki/resources/lang/ko.lang | 1 + liteyuki/resources/lang/ru.lang | 1 + liteyuki/resources/lang/zh-CN.lang | 1 + liteyuki/resources/lang/zh-HK.lang | 1 + liteyuki/resources/lang/zh-Kawaii.lang | 1 + liteyuki/resources/lang/zh-MS.lang | 1 + liteyuki/resources/lang/zh-SG.lang | 1 + liteyuki/resources/lang/zh-WY.lang | 1 + 14 files changed, 25 insertions(+), 8 deletions(-) diff --git a/liteyuki/liteyuki_main/runtime.py b/liteyuki/liteyuki_main/runtime.py index d68ebc5a..c275301e 100644 --- a/liteyuki/liteyuki_main/runtime.py +++ b/liteyuki/liteyuki_main/runtime.py @@ -94,12 +94,16 @@ async def _(bot: T_Bot, event: T_MessageEvent): "BOT_ID" : bot.self_id, "BOT_NAME" : (await bot.get_login_info())["nickname"], "BOT_TAGS" : [ - protocol_names.get(version_info.get("protocol_name"), "Linux"), version_info.get("app_name"), version_info.get("app_version"), - f"{ulang.get('liteyuki.stats.groups')} {groups}", f"{ulang.get('liteyuki.stats.friends')} {friends}", + protocol_names.get(version_info.get("protocol_name"), "Online"), + f"{ulang.get('liteyuki.stats.plugins')} {len(nonebot.get_loaded_plugins())}", + f"{ulang.get('liteyuki.stats.groups')} {groups}", + f"{ulang.get('liteyuki.stats.friends')} {friends}", f"{ulang.get('liteyuki.stats.sent')} {statistics.get('message_sent', 0)}", f"{ulang.get('liteyuki.stats.received')} {statistics.get('message_received', 0)}", + f"{__NAME__} {__VERSION__}", + f"Nonebot {nonebot.__version__}", f"{platform.python_implementation()} {platform.python_version()}", - f"Nonebot {nonebot.__version__}", f"{__NAME__} {__VERSION__}" + version_info.get("app_name"), ], "CPU_TAGS" : [ f"{brand} {cpu_info.get('arch', 'Unknown')}", diff --git a/liteyuki/resources/lang/de.lang b/liteyuki/resources/lang/de.lang index 82fce4a7..8164a1b0 100644 --- a/liteyuki/resources/lang/de.lang +++ b/liteyuki/resources/lang/de.lang @@ -21,6 +21,7 @@ liteyuki.stats.received=Empfangen liteyuki.stats.run_time=Ausführungszeit liteyuki.stats.groups=Gruppen liteyuki.stats.friends=Freunde +liteyuki.stats.plugins=Plugins main.current_language=Aktuelle Sprache: {LANG} main.enable_webdash=Webüberwachungspanel aktiviert: {URL} diff --git a/liteyuki/resources/lang/en.lang b/liteyuki/resources/lang/en.lang index c34bbbe8..264ffb1a 100644 --- a/liteyuki/resources/lang/en.lang +++ b/liteyuki/resources/lang/en.lang @@ -13,14 +13,15 @@ liteyuki.current_config=Current Configuration liteyuki.static_config=Static File Configuration liteyuki.stored_config=Stored Configuration liteyuki.config_set_success=Configuration item {KEY}={VAL} set successfully. -liteyuki.stats.group=Group -liteyuki.stats.user=User -liteyuki.stats.plugin=Plugin +liteyuki.stats.group=Group(s) +liteyuki.stats.user=User(s) +liteyuki.stats.plugin=Plugin(s) liteyuki.stats.sent=Sent liteyuki.stats.received=Received liteyuki.stats.run_time=Run Time -liteyuki.stats.groups=Groups -liteyuki.stats.friends=Friends +liteyuki.stats.groups=Group(s) +liteyuki.stats.friends=Friend(s) +liteyuki.stats.plugins=Plugin(s) main.current_language=Current language: {LANG} main.enable_webdash=Web monitoring panel enabled: {URL} diff --git a/liteyuki/resources/lang/es.lang b/liteyuki/resources/lang/es.lang index 4db98008..a345e7f4 100644 --- a/liteyuki/resources/lang/es.lang +++ b/liteyuki/resources/lang/es.lang @@ -21,6 +21,7 @@ liteyuki.stats.received=Recibido liteyuki.stats.run_time=Tiempo de Ejecución liteyuki.stats.groups=Grupos liteyuki.stats.friends=Amigos +liteyuki.stats.plugins=Plugins main.current_language=Idioma actual: {LANG} main.enable_webdash=Panel de monitoreo web habilitado: {URL} diff --git a/liteyuki/resources/lang/fr.lang b/liteyuki/resources/lang/fr.lang index 81c88d01..59cf1b4d 100644 --- a/liteyuki/resources/lang/fr.lang +++ b/liteyuki/resources/lang/fr.lang @@ -21,6 +21,7 @@ liteyuki.stats.received=Reçu liteyuki.stats.run_time=Temps d'Exécution liteyuki.stats.groups=Groupes liteyuki.stats.friends=Amis +liteyuki.stats.plugins=Plugins main.current_language=Langue actuelle : {LANG} main.enable_webdash=Tableau de bord Web activé : {URL} diff --git a/liteyuki/resources/lang/ja.lang b/liteyuki/resources/lang/ja.lang index 1d1af5cb..dda095b1 100644 --- a/liteyuki/resources/lang/ja.lang +++ b/liteyuki/resources/lang/ja.lang @@ -21,6 +21,7 @@ liteyuki.stats.received=受信 liteyuki.stats.run_time=実行時間 liteyuki.stats.groups=グループ liteyuki.stats.friends=友達 +liteyuki.stats.plugins=プラグイン main.current_language=現在の言語: {LANG} main.enable_webdash=Web監視パネルが有効になりました: {URL} diff --git a/liteyuki/resources/lang/ko.lang b/liteyuki/resources/lang/ko.lang index 838ee374..3605e428 100644 --- a/liteyuki/resources/lang/ko.lang +++ b/liteyuki/resources/lang/ko.lang @@ -21,6 +21,7 @@ liteyuki.stats.received=받은 liteyuki.stats.run_time=실행 시간 liteyuki.stats.groups=그룹 liteyuki.stats.friends=친구 +liteyuki.stats.plugins=플러그인 main.current_language=현재 언어: {LANG} main.enable_webdash=웹 대시보드가 활성화되었습니다: {URL} diff --git a/liteyuki/resources/lang/ru.lang b/liteyuki/resources/lang/ru.lang index 7cd17516..595e4718 100644 --- a/liteyuki/resources/lang/ru.lang +++ b/liteyuki/resources/lang/ru.lang @@ -21,6 +21,7 @@ liteyuki.stats.received=Получено liteyuki.stats.run_time=Время работы liteyuki.stats.groups=Группы liteyuki.stats.friends=Друзья +liteyuki.stats.plugins=Плагины main.current_language=Текущий язык: {LANG} main.enable_webdash=Веб-панель мониторинга активирована: {URL} diff --git a/liteyuki/resources/lang/zh-CN.lang b/liteyuki/resources/lang/zh-CN.lang index 322004f3..c4e74cde 100644 --- a/liteyuki/resources/lang/zh-CN.lang +++ b/liteyuki/resources/lang/zh-CN.lang @@ -21,6 +21,7 @@ liteyuki.stats.received=接收 liteyuki.stats.run_time=运行时间 liteyuki.stats.groups=群 liteyuki.stats.friends=好友 +liteyuki.stats.plugins=插件 main.current_language=当前配置语言为: {LANG} main.enable_webdash=已启用网页监控面板: {URL} diff --git a/liteyuki/resources/lang/zh-HK.lang b/liteyuki/resources/lang/zh-HK.lang index b06d3f07..53b82748 100644 --- a/liteyuki/resources/lang/zh-HK.lang +++ b/liteyuki/resources/lang/zh-HK.lang @@ -21,6 +21,7 @@ liteyuki.stats.received=接收 liteyuki.stats.run_time=運行時間 liteyuki.stats.groups=群組 liteyuki.stats.friends=好友 +liteyuki.stats.plugins=插件 main.current_language=當前配置語言為: {LANG} main.enable_webdash=已啟用網頁監控面板: {URL} diff --git a/liteyuki/resources/lang/zh-Kawaii.lang b/liteyuki/resources/lang/zh-Kawaii.lang index 77f451b5..32632b72 100644 --- a/liteyuki/resources/lang/zh-Kawaii.lang +++ b/liteyuki/resources/lang/zh-Kawaii.lang @@ -21,6 +21,7 @@ liteyuki.stats.received=接收到了 liteyuki.stats.run_time=运行时间 liteyuki.stats.groups=组组 liteyuki.stats.friends=小伙伴们 +liteyuki.stats.plugins=插件们 main.current_language=现在的语言是: {LANG} main.enable_webdash=已经启用网页监控板啦: {URL} diff --git a/liteyuki/resources/lang/zh-MS.lang b/liteyuki/resources/lang/zh-MS.lang index 349798cf..34c76c8c 100644 --- a/liteyuki/resources/lang/zh-MS.lang +++ b/liteyuki/resources/lang/zh-MS.lang @@ -21,6 +21,7 @@ liteyuki.stats.received=接收 liteyuki.stats.run_time=执行时间 liteyuki.stats.groups=团体 liteyuki.stats.friends=伙伴 +liteyuki.stats.plugins=器械 main.current_language=现行言语策划为: {LANG} main.enable_webdash=网络监视版已启动: {URL} diff --git a/liteyuki/resources/lang/zh-SG.lang b/liteyuki/resources/lang/zh-SG.lang index 64b5819b..dd528ce7 100644 --- a/liteyuki/resources/lang/zh-SG.lang +++ b/liteyuki/resources/lang/zh-SG.lang @@ -21,6 +21,7 @@ liteyuki.stats.received=收到 liteyuki.stats.run_time=运行时间 liteyuki.stats.groups=群组 liteyuki.stats.friends=好友 +liteyuki.stats.plugins=插件 main.current_language=目前语言设定为:{LANG} main.enable_webdash=网页监控板已启用:{URL} diff --git a/liteyuki/resources/lang/zh-WY.lang b/liteyuki/resources/lang/zh-WY.lang index 90a3a5e2..be7e1998 100644 --- a/liteyuki/resources/lang/zh-WY.lang +++ b/liteyuki/resources/lang/zh-WY.lang @@ -21,6 +21,7 @@ liteyuki.stats.received=受 liteyuki.stats.run_time=動時 liteyuki.stats.groups=群 liteyuki.stats.friends=友 +liteyuki.stats.plugins=巢 main.current_language=當前言之: {LANG} main.enable_webdash=以啟網言見板: {URL}