RoverSign 的用户活跃度 hook - 写入缓冲区,定时批量刷写
(user_id: str, bot_id: str, bot_self_id: str)
| 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 - 写入缓冲区,定时批量刷写""" |
| 90 | if PUSH_GUARD.get(): |
| 91 | return |
| 92 | if not is_from_rover_plugin(): |
| 93 | return |
| 94 | if not user_id: |
| 95 | return |
| 96 | _activity_buffer[f"{user_id}:{bot_id}:{bot_self_id}"] = (user_id, bot_id, bot_self_id) |
| 97 | |
| 98 | async def rover_group_activity_hook(group_id: str, bot_id: str, bot_self_id: str): |
| 99 | """RoverSign 的群活跃度 hook - 写入缓冲区,定时批量刷写""" |
nothing calls this directly
no test coverage detected