Skip to content

Commit efcf57f

Browse files
committed
feat: 给全量刷新添加 tg 推送
1 parent cceda4e commit efcf57f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

mcim_sync/tasks/curseforge.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,3 +255,14 @@ def sync_curseforge_full():
255255
)
256256

257257
curseforge_pool.shutdown()
258+
259+
if config.telegram_bot:
260+
notification = RefreshNotification(
261+
platform=Platform.CURSEFORGE,
262+
projects_detail_info=projects_detail_info,
263+
failed_count=failed_count,
264+
)
265+
notification.send_to_telegram()
266+
log.info("CurseForge refresh message sent to telegram.")
267+
268+
return True

0 commit comments

Comments
 (0)