mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-11 06:27:23 +08:00
feat: 更新并重启
This commit is contained in:
parent
90216c1a60
commit
6edad57470
@ -55,7 +55,7 @@ async def _(bot: T_Bot, event: T_MessageEvent):
|
||||
logs = repo.index.diff()
|
||||
reply = "Liteyuki updated!\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)}"
|
||||
await send_markdown(reply, bot, event=event, at_sender=False)
|
||||
|
||||
|
@ -7,6 +7,7 @@ log.error=Error
|
||||
log.success=Success
|
||||
|
||||
liteyuki.restart=Restart
|
||||
liteyuki.restart_now=Restart now
|
||||
liteyuki.update_restart=Update completely, You can {RESTART} the server now or later
|
||||
|
||||
main.current_language=Current config language: {LANG}
|
||||
|
@ -7,6 +7,7 @@ log.error=错误
|
||||
log.success=成功
|
||||
|
||||
liteyuki.restart=重启
|
||||
liteyuki.restart_now=立即重启
|
||||
liteyuki.update_restart=更新完成,你可以立即{RESTART}或稍后手动重启以应用这些更新
|
||||
|
||||
main.current_language=当前配置语言为: {LANG}
|
||||
|
Loading…
Reference in New Issue
Block a user