修复喜报bug

This commit is contained in:
SlyAimer 2025-02-09 18:12:46 +08:00
parent 043efd162c
commit 168dc8f85c

View file

@ -49,7 +49,7 @@ async def function(message: MessageEvent):
if keyword == "/喜报":
filename = "good_news.png"
await add_text_to_image(image_path=good_bad + filename, output_path=temp_path + filename, content=content,
font_path=font_path + "msyh.ttc", font_size=64, text_color=(255, 0, 0),
font_path=font_path + "msyh.ttc", font_size=64, text_color=(255, 0, 0),text_position="center",
position="center")
await good_news.finish(MessageSegment.file_image(Path(temp_path + filename)))
elif keyword == "/悲报":