feat: 更新并重启

This commit is contained in:
远野千束 2024-03-27 07:58:14 +08:00
parent 90216c1a60
commit 6edad57470
3 changed files with 3 additions and 1 deletions

View File

@ -55,7 +55,7 @@ async def _(bot: T_Bot, event: T_MessageEvent):
logs = repo.index.diff() logs = repo.index.diff()
reply = "Liteyuki updated!\n" reply = "Liteyuki updated!\n"
reply += f"```\n{logs}\n```\n" reply += f"```\n{logs}\n```\n"
btn_restart = md.button(ulang.get("liteyuki.restart"), "restart-liteyuki") btn_restart = md.button(ulang.get("liteyuki.restart_now"), "restart-liteyuki")
reply += f"{ulang.get('liteyuki.update_restart', RESTART=btn_restart)}" reply += f"{ulang.get('liteyuki.update_restart', RESTART=btn_restart)}"
await send_markdown(reply, bot, event=event, at_sender=False) await send_markdown(reply, bot, event=event, at_sender=False)

View File

@ -7,6 +7,7 @@ log.error=Error
log.success=Success log.success=Success
liteyuki.restart=Restart liteyuki.restart=Restart
liteyuki.restart_now=Restart now
liteyuki.update_restart=Update completely, You can {RESTART} the server now or later liteyuki.update_restart=Update completely, You can {RESTART} the server now or later
main.current_language=Current config language: {LANG} main.current_language=Current config language: {LANG}

View File

@ -7,6 +7,7 @@ log.error=错误
log.success=成功 log.success=成功
liteyuki.restart=重启 liteyuki.restart=重启
liteyuki.restart_now=立即重启
liteyuki.update_restart=更新完成,你可以立即{RESTART}或稍后手动重启以应用这些更新 liteyuki.update_restart=更新完成,你可以立即{RESTART}或稍后手动重启以应用这些更新
main.current_language=当前配置语言为: {LANG} main.current_language=当前配置语言为: {LANG}