diff --git a/ArknightsUID/arknightsuid_charsnapshot/__init__.py b/ArknightsUID/arknightsuid_charsnapshot/__init__.py index 6dce6d3..45a56b7 100644 --- a/ArknightsUID/arknightsuid_charsnapshot/__init__.py +++ b/ArknightsUID/arknightsuid_charsnapshot/__init__.py @@ -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) diff --git a/ArknightsUID/arknightsuid_charsnapshot/get_char_snapshot.py b/ArknightsUID/arknightsuid_charsnapshot/get_char_snapshot.py index 78ec003..b37ecfd 100644 --- a/ArknightsUID/arknightsuid_charsnapshot/get_char_snapshot.py +++ b/ArknightsUID/arknightsuid_charsnapshot/get_char_snapshot.py @@ -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(