Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 312e203bbe |
@ -92,6 +92,10 @@ async def _(target: DepLongTaskTarget, index_id: str = "", page: int = 1):
|
|||||||
@scheduler.scheduled_job("cron", hour="8")
|
@scheduler.scheduled_job("cron", hour="8")
|
||||||
async def _():
|
async def _():
|
||||||
async with puzzle_manager() as manager:
|
async with puzzle_manager() as manager:
|
||||||
|
msg2 = manager.get_report_yesterday()
|
||||||
|
if msg2 is not None:
|
||||||
|
await qq_broadcast(config.plugin_puzzle_playgroup, msg2)
|
||||||
|
|
||||||
puzzle = manager.get_today_puzzle()
|
puzzle = manager.get_today_puzzle()
|
||||||
if puzzle is not None:
|
if puzzle is not None:
|
||||||
logger.info(f"找到了题目 {puzzle.raw_id},发送")
|
logger.info(f"找到了题目 {puzzle.raw_id},发送")
|
||||||
@ -99,3 +103,4 @@ async def _():
|
|||||||
else:
|
else:
|
||||||
logger.info("自动任务:没有找到题目,跳过")
|
logger.info("自动任务:没有找到题目,跳过")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user