RoverSign 的 bot 检测 hook
(group_id: str, bot_id: str, bot_self_id: str)
| 76 | logger.info("[库洛签到·插件] 活跃度缓冲区刷写完成") |
| 77 | |
| 78 | async def rover_bot_check_hook(group_id: str, bot_id: str, bot_self_id: str): |
| 79 | """RoverSign 的 bot 检测 hook""" |
| 80 | logger.debug(f"[库洛签到·Hook] bot_check_hook 被调用: group_id={group_id}, bot_id={bot_id}, bot_self_id={bot_self_id}") |
| 81 | |
| 82 | if group_id: |
| 83 | try: |
| 84 | await RoverSubscribe.check_and_update_bot(group_id, bot_id, bot_self_id) |
| 85 | except Exception as e: |
| 86 | logger.warning(f"[库洛签到·Hook] Bot检测失败: {e}") |
| 87 | |
| 88 | async def rover_user_activity_hook(user_id: str, bot_id: str, bot_self_id: str): |
| 89 | """RoverSign 的用户活跃度 hook - 写入缓冲区,定时批量刷写""" |
nothing calls this directly
no test coverage detected