feat(group_horse_racing): 增加赛马消息图片渲染功能
- 在配置中新增图片渲染相关参数:RACE_RENDER_AS_IMAGE、RACE_IMAGE_WIDTH 等 - 复用 danding_qqpush 的 ImageRenderer,使其支持自定义标题 - 在比赛开始、结束和进度播报时,将文本消息转换为带标题的图片发送 - 修复测试用例中的消息发送函数调用
This commit is contained in:
@@ -250,7 +250,7 @@ async def handle_test_simulate_race(bot: Bot, event: Event):
|
||||
progress_count += 1
|
||||
if progress_count > max_progress:
|
||||
return
|
||||
await test_simulate_race_cmd.send(message)
|
||||
await original_send_to_scope(bot, scope, message)
|
||||
|
||||
commands_mod._send_to_scope = _test_send_to_scope
|
||||
|
||||
|
||||
Reference in New Issue
Block a user