From eba78d6f728b72cd2c4848ac009c1c6dbca8d6fa Mon Sep 17 00:00:00 2001 From: SlyAimer <2289782085@qq.com> Date: Sun, 9 Feb 2025 19:58:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(good=5Fbad=5Fnews):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=88=A0=E9=99=A4=E9=80=BB=E8=BE=91=E7=BC=A9?= =?UTF-8?q?=E8=BF=9B=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/good_bad_news.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/good_bad_news.py b/src/plugins/good_bad_news.py index b1a7bfe..408e92c 100644 --- a/src/plugins/good_bad_news.py +++ b/src/plugins/good_bad_news.py @@ -57,5 +57,5 @@ async def function(message: MessageEvent): await add_text_to_image(image_path=good_bad + filename, output_path=temp_path + filename, content=content, font_path=font_path + "微软雅黑.ttc", font_size=72, text_color=(128, 128, 128),text_position="center", position="center") - await good_news.send(MessageSegment.file_image(Path(temp_path+filename))) + await good_news.finish(MessageSegment.file_image(Path(temp_path+filename))) await delete_file(temp_path + filename) \ No newline at end of file