mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-30 17:15:08 +08:00
🔥 improve matcher store
This commit is contained in:
parent
0eadf5f4e9
commit
85f0023350
@ -65,6 +65,7 @@ class Plugin(object):
|
||||
|
||||
|
||||
def _store_matcher(matcher: Type[Matcher]):
|
||||
if matcher.module:
|
||||
plugin_name = matcher.module.split(".", maxsplit=1)[0]
|
||||
_plugin_matchers[plugin_name].add(matcher)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user