From 39bb5a9ab9f51847f223faaec7a2c42e0e4844f0 Mon Sep 17 00:00:00 2001 From: hibiki <775757368@qq.com> Date: Wed, 18 Aug 2021 00:26:11 +0800 Subject: [PATCH] update check_zhenxun_update --- plugins/check_zhenxun_update/data_source.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/check_zhenxun_update/data_source.py b/plugins/check_zhenxun_update/data_source.py index bbfdda59..14ad4c8c 100644 --- a/plugins/check_zhenxun_update/data_source.py +++ b/plugins/check_zhenxun_update/data_source.py @@ -94,8 +94,8 @@ async def check_update(bot: Bot) -> int: width = 0 height = len(update_info.split('\n')) * 24 for m in update_info.split('\n'): - if len(m) * 20 > width: - width = len(m) * 21 + if len(m) * 24 > width: + width = len(m) * 24 A = CreateImg(800, height, font_size=20) A.text((10, 10), update_info) A.save(f'{IMAGE_PATH}/update_info.png')