Feature: 支持自定义 matchers 存储管理 (#1395)

This commit is contained in:
Ju4tCode
2022-11-21 18:44:55 +08:00
committed by GitHub
parent c783ab5e9b
commit 2922da7b2f
7 changed files with 171 additions and 20 deletions

View File

@ -0,0 +1,11 @@
from .manager import MatcherManager as MatcherManager
from .provider import MatcherProvider as MatcherProvider
from .provider import DEFAULT_PROVIDER_CLASS as DEFAULT_PROVIDER_CLASS
matchers = MatcherManager()
from .matcher import Matcher as Matcher
from .matcher import current_bot as current_bot
from .matcher import current_event as current_event
from .matcher import current_handler as current_handler
from .matcher import current_matcher as current_matcher