mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-11 05:17:24 +08:00
feat: 状态卡片
This commit is contained in:
parent
84e2223dbb
commit
807e552f8a
@ -1,6 +1,7 @@
|
|||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
import nonebot
|
import nonebot
|
||||||
|
import pip
|
||||||
from git import Repo
|
from git import Repo
|
||||||
from nonebot import require, get_driver
|
from nonebot import require, get_driver
|
||||||
from nonebot.permission import SUPERUSER
|
from nonebot.permission import SUPERUSER
|
||||||
@ -79,6 +80,7 @@ async def _(bot: T_Bot, event: T_MessageEvent):
|
|||||||
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_now"), "restart-liteyuki")
|
btn_restart = md.button(ulang.get("liteyuki.restart_now"), "restart-liteyuki")
|
||||||
|
pip.main(["install", "-r", "requirements.txt"])
|
||||||
reply += f"{ulang.get('liteyuki.update_restart', RESTART=btn_restart)}"
|
reply += f"{ulang.get('liteyuki.update_restart', RESTART=btn_restart)}"
|
||||||
await md.send_md(reply, bot, event=event, at_sender=False)
|
await md.send_md(reply, bot, event=event, at_sender=False)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user