From fc34cd541ad7e6abdcdbc4ec256224e01c6fcc67 Mon Sep 17 00:00:00 2001 From: hibiki <775757368@qq.com> Date: Wed, 18 Aug 2021 01:33:43 +0800 Subject: [PATCH] code --- plugins/check_zhenxun_update/data_source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/check_zhenxun_update/data_source.py b/plugins/check_zhenxun_update/data_source.py index a52b141b..bba2bcdc 100644 --- a/plugins/check_zhenxun_update/data_source.py +++ b/plugins/check_zhenxun_update/data_source.py @@ -95,7 +95,7 @@ async def check_update(bot: Bot) -> int: height = len(update_info.split('\n')) * 24 for m in update_info.split('\n'): if len(m) * 20 > width: - width = len(m) * 17 + width = len(m) * 24 A = CreateImg(width, height, font_size=20) A.text((10, 10), update_info) A.save(f'{IMAGE_PATH}/update_info.png')