mirror of
https://github.com/baiqwerdvd/ArknightsUID.git
synced 2025-05-07 20:45:51 +08:00
忘记加发送逻辑了
This commit is contained in:
parent
1c101690bc
commit
be794c1bf0
@ -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)
|
||||
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user