mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-14 14:57:25 +08:00
feat: 国产某聊天软件的图床支持
This commit is contained in:
parent
ad543dd738
commit
eaae8ceaad
@ -1,6 +1,7 @@
|
||||
import base64
|
||||
from typing import Any
|
||||
|
||||
import nonebot
|
||||
import pip
|
||||
from git import Repo
|
||||
from nonebot import Bot, require, get_driver
|
||||
@ -104,8 +105,7 @@ async def _(bot: T_Bot, event: T_MessageEvent):
|
||||
repo.remotes[origin].pull()
|
||||
break
|
||||
except Exception as e:
|
||||
print(f"Pull from {origin} failed: {e}")
|
||||
logs = repo.index
|
||||
nonebot.logger.error(f"Pull from {origin} failed: {e}")
|
||||
reply = "Liteyuki updated!\n"
|
||||
reply += f"```\n{logs}\n```\n"
|
||||
btn_restart = md.button(ulang.get("liteyuki.restart_now"), "reload-liteyuki")
|
||||
|
Loading…
Reference in New Issue
Block a user