Skip to content

Commit

Permalink
🐛 强制推送体力提醒强制生效 (#647)
Browse files Browse the repository at this point in the history
  • Loading branch information
KimigaiiWuyi committed Aug 20, 2024
1 parent 3227602 commit c218428
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions GenshinUID/genshinuid_resin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ async def send_daily_info(bot: Bot, ev: Event):
@sv_get_resin_admin.on_fullmatch(('强制推送体力提醒'))
async def force_notice_job(bot: Bot, ev: Event):
await bot.logger.info('开始执行[强制推送体力信息]')
await notice_job()
await notice_job(True)


@scheduler.scheduled_job('cron', minute='*/30')
async def notice_job():
if is_check_resin:
async def notice_job(force: bool = False):
if is_check_resin or force:
result = await get_notice_list()
logger.info('[推送检查]完成!等待消息推送中...')
logger.debug(result)
Expand Down

0 comments on commit c218428

Please sign in to comment.