忘记加发送逻辑了

This commit is contained in:
baiqwerdvd 2024-05-26 22:05:21 +08:00
parent 1c101690bc
commit be794c1bf0
No known key found for this signature in database
GPG Key ID: 7717E46E1797411A
2 changed files with 5 additions and 2 deletions

View File

@ -17,4 +17,5 @@ async def send_char_snapshot(bot: Bot, ev: Event):
return "你还没有绑定UID噢,请使用[ark绑定uid123]完成绑定!"
await bot.logger.info("开始执行[ark角色快照]")
await get_char_snapshot(uid)
im = await get_char_snapshot(uid)
await bot.send(im)

View File

@ -6,7 +6,7 @@ from ..utils.models.skland.models import (
PlayerEquipmentInfo,
PlayerInfoChar,
)
from gsuid_core.utils.image.convert import convert_img
from ..arknightsuid_resource.constants import SKILL_TABLE
from ..utils.fonts.source_han_sans import (
sans_font_26,
@ -233,6 +233,8 @@ async def get_char_snapshot(uid: str):
footer_img = Image.open(TEXT_PATH / "footer.png")
bg_img.paste(footer_img, (0, 2365), mask=footer_img)
res = await convert_img(bg_img)
return res
def draw_char(