2021-08-29 00:24:28 +08:00
|
|
|
|
"""
|
2022-01-12 19:24:01 +08:00
|
|
|
|
## 协议适配基类
|
2021-08-29 00:24:28 +08:00
|
|
|
|
|
2022-01-12 18:19:21 +08:00
|
|
|
|
各协议请继承以下基类,并使用 `driver.register_adapter` 注册适配器
|
2021-08-29 00:24:28 +08:00
|
|
|
|
"""
|
|
|
|
|
|
2021-02-19 15:24:52 +08:00
|
|
|
|
from typing import Iterable
|
2020-07-11 17:32:03 +08:00
|
|
|
|
|
2021-02-11 17:29:16 +08:00
|
|
|
|
try:
|
|
|
|
|
import pkg_resources
|
2021-11-22 23:21:26 +08:00
|
|
|
|
|
2021-02-11 17:29:16 +08:00
|
|
|
|
pkg_resources.declare_namespace(__name__)
|
|
|
|
|
del pkg_resources
|
|
|
|
|
except ImportError:
|
|
|
|
|
import pkgutil
|
2021-11-22 23:21:26 +08:00
|
|
|
|
|
|
|
|
|
__path__: Iterable[str] = pkgutil.extend_path(__path__, __name__) # type: ignore
|
2021-02-11 17:29:16 +08:00
|
|
|
|
del pkgutil
|
|
|
|
|
except Exception:
|
|
|
|
|
pass
|
|
|
|
|
|
2021-09-18 20:22:38 +08:00
|
|
|
|
from ._bot import Bot as Bot
|
|
|
|
|
from ._event import Event as Event
|
2021-12-06 22:19:05 +08:00
|
|
|
|
from ._adapter import Adapter as Adapter
|
2021-09-18 20:22:38 +08:00
|
|
|
|
from ._message import Message as Message
|
|
|
|
|
from ._message import MessageSegment as MessageSegment
|
2021-09-27 00:19:30 +08:00
|
|
|
|
from ._template import MessageTemplate as MessageTemplate
|