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

Method __init__

RoverSign/utils/bot_send_hook.py:17–21  ·  view source on GitHub ↗
(self, plugin_name: str)

Source from the content-addressed store, hash-verified

15 """插件 hook 管理器"""
16
17 def __init__(self, plugin_name: str):
18 self.plugin_name = plugin_name
19 self.target_send_hooks: list[Callable] = []
20 self.user_activity_hooks: list[Callable] = []
21 self.group_activity_hooks: list[Callable] = []
22
23 def register_target_send_hook(self, func: Callable):
24 """注册 target_send 方法 hook"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected