From 807e552f8a014c0d2b5c4cf764fa346f1445ed22 Mon Sep 17 00:00:00 2001 From: snowy Date: Sun, 31 Mar 2024 06:26:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=8A=B6=E6=80=81=E5=8D=A1=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- liteyuki/liteyuki_main/core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/liteyuki/liteyuki_main/core.py b/liteyuki/liteyuki_main/core.py index 8ea9acb..fa1d401 100644 --- a/liteyuki/liteyuki_main/core.py +++ b/liteyuki/liteyuki_main/core.py @@ -1,6 +1,7 @@ from typing import Any import nonebot +import pip from git import Repo from nonebot import require, get_driver from nonebot.permission import SUPERUSER @@ -79,6 +80,7 @@ async def _(bot: T_Bot, event: T_MessageEvent): reply = "Liteyuki updated!\n" reply += f"```\n{logs}\n```\n" 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)}" await md.send_md(reply, bot, event=event, at_sender=False)