From 9f6c70bf0faf3b1def183fc84cec326bd59df61e Mon Sep 17 00:00:00 2001 From: MixBadGun <1059129006@qq.com> Date: Tue, 30 Sep 2025 15:21:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E5=90=8E=E7=9A=84=E9=83=A8?= =?UTF-8?q?=E5=88=86=E9=AA=B0=E5=AD=90=E8=B7=AF=E5=BE=84=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- konabot/plugins/roll_dice/roll_dice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/konabot/plugins/roll_dice/roll_dice.py b/konabot/plugins/roll_dice/roll_dice.py index 563e027..96fe54b 100644 --- a/konabot/plugins/roll_dice/roll_dice.py +++ b/konabot/plugins/roll_dice/roll_dice.py @@ -308,7 +308,7 @@ async def generate_dice_image(number: str) -> BytesIO: # 如果文本太长,直接返回金箍棒 if(len(text) > 50): output = BytesIO() - push_image = Image.open(ASSETS_PATH / "stick.png") + push_image = Image.open(ASSETS_PATH / "img" / "dice" / "stick.png") push_image.save(output,format='PNG') output.seek(0) return output @@ -334,7 +334,7 @@ async def generate_dice_image(number: str) -> BytesIO: move_distance = (up_direction[0] * (stretch_k - 1), up_direction[1] * (stretch_k - 1)) # 加载背景图像,保留透明通道 - background = cv2.imread(ASSETS_PATH / "template.png", cv2.IMREAD_UNCHANGED) + background = cv2.imread(ASSETS_PATH / "img" / "dice" / "template.png", cv2.IMREAD_UNCHANGED) height, width = background.shape[:2]