mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
update check_zhenxun_update
This commit is contained in:
parent
f754ad1c76
commit
39bb5a9ab9
@ -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')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user