nonebot-plugin-lazy 0.3.2__tar.gz → 0.3.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: nonebot-plugin-lazy
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: LAZY SERVER 官方支持,在 QQ 内获得学在浙大点名/待办通知
5
5
  Project-URL: homepage, https://github.com/yangshu233/nonebot_plugin_lazy
6
6
  Project-URL: repository, https://github.com/yangshu233/nonebot_plugin_lazy
@@ -176,17 +176,13 @@ class Notifier:
176
176
  logger.error("没有可用的 Bot 实例")
177
177
  return
178
178
  groups = self._target_groups(qq_id)
179
- html = self._build_rollcall_html(items)
180
- pic = await self._render_image(html)
181
- if pic:
182
- await self._send_image(qq_id, pic, groups)
183
- else:
184
- text = "\n\n".join(
185
- f"🔔 点名\n课程:{i.get('course_title','')}\n"
186
- f"发起人:{i.get('created_by_name','')}"
187
- for i in items
188
- )
189
- await self._send_text_fallback(qq_id, text, groups)
179
+
180
+ text = "\n\n".join(
181
+ f"🔔 点名\n课程:{i.get('course_title','')}\n"
182
+ f"发起人:{i.get('created_by_name','')}"
183
+ for i in items
184
+ )
185
+ await self._send_text_fallback(qq_id, text, groups)
190
186
 
191
187
  async def notify_todos(self, qq_id: int, items: list[dict]):
192
188
  try:
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "nonebot-plugin-lazy"
7
- version = "0.3.2"
7
+ version = "0.3.3"
8
8
  description = "LAZY SERVER 官方支持,在 QQ 内获得学在浙大点名/待办通知"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.12"