MCPcopy Create free account
hub / github.com/Loping151/RoverSign / rover_user_activity_hook

Function rover_user_activity_hook

RoverSign/__init__.py:88–96  ·  view source on GitHub ↗

RoverSign 的用户活跃度 hook - 写入缓冲区,定时批量刷写

(user_id: str, bot_id: str, bot_self_id: str)

Source from the content-addressed store, hash-verified

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 - 写入缓冲区,定时批量刷写"""

Callers

nothing calls this directly

Calls 1

is_from_rover_pluginFunction · 0.85

Tested by

no test coverage detected