MCPcopy Index your code
hub / github.com/nonebot/nonebot2 / plugin

Method plugin

nonebot/internal/matcher/matcher.py:96–101  ·  view source on GitHub ↗

事件响应器所在插件

(self)

Source from the content-addressed store, hash-verified

94
95 @property
96 def plugin(self) -> "Plugin | None":
97 """事件响应器所在插件"""
98 from nonebot.plugin import get_plugin
99
100 if self.plugin_id is not None:
101 return get_plugin(self.plugin_id)
102
103 @property
104 def plugin_name(self) -> str | None:

Callers

nothing calls this directly

Calls 1

get_pluginFunction · 0.90

Tested by

no test coverage detected