基本完成课表生成

This commit is contained in:
2026-04-02 23:16:08 +08:00
parent 868abb2358
commit a003931207
3 changed files with 220 additions and 86 deletions

View File

@@ -8,8 +8,8 @@ from astrbot.api import logger
from astrbot.core import AstrBotConfig
from astrbot.core.message.message_event_result import MessageEventResult
from schedule_utils import convert_tuple_schedule_to_dict
from schedule_renderer import ScheduleRenderer
from .schedule_utils import convert_tuple_schedule_to_dict
from .schedule_renderer import ScheduleRenderer
class SuanPlugin(Star):
@@ -96,7 +96,7 @@ class SuanPlugin(Star):
image_data = await self.renderer.render_to_png(
html_content,
debug_path='/home/fanfan/test_daily.html',
width=880
width=680
)
# 返回图片消息