Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@nonebot.scheduler.scheduled_job('cron', hour='14', minute='50', second='0', misfire_grace_time=60) # = UTC+8 1445
async def pcr_reminder():
try:
group_list = await bot.get_group_list()
msg = '背刺Time背刺Time背刺Time背刺Time背刺Time!!!'
groups = [group['group_id'] for group in group_list]
for group in groups:
await bot.send_group_msg(group_id=group, message=msg)
except:
pass