mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
Update timing_task.py
This commit is contained in:
parent
1b99c34cfb
commit
825671447a
@ -28,6 +28,7 @@ async def _():
|
|||||||
minutes=5,
|
minutes=5,
|
||||||
)
|
)
|
||||||
async def _():
|
async def _():
|
||||||
|
try:
|
||||||
bot = get_bot()
|
bot = get_bot()
|
||||||
gl = await bot.get_group_list(self_id=bot.self_id)
|
gl = await bot.get_group_list(self_id=bot.self_id)
|
||||||
gl = [g["group_id"] for g in gl]
|
gl = [g["group_id"] for g in gl]
|
||||||
@ -36,3 +37,5 @@ async def _():
|
|||||||
if g not in all_group:
|
if g not in all_group:
|
||||||
await update_member_info(g)
|
await update_member_info(g)
|
||||||
logger.info(f"快速更新群信息以及权限:{g}")
|
logger.info(f"快速更新群信息以及权限:{g}")
|
||||||
|
except IndexError:
|
||||||
|
pass
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user