-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
separate adapters #16
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
多适配器的注册方式要不要改一改?
onebot_v12 = "OneBot V12" | ||
|
||
|
||
def get_message_class_by_adapter_name(adapter_name: str) -> Type[Message]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个要不要弄成和 saa 差不多的那种 register 呢?然后在每个文件中单独注册。
@overload | ||
def deserialize_message(msg: JsonMsg, msg_class: Type[V11Msg]) -> V11Msg: | ||
... | ||
def serialize_message(msg: Message) -> JsonMsg: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这些地方也是,可以单独注册处理函数。
Codecov ReportPatch coverage:
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## main #16 +/- ##
==========================================
+ Coverage 84.59% 86.11% +1.52%
==========================================
Files 8 15 +7
Lines 305 389 +84
==========================================
+ Hits 258 335 +77
- Misses 47 54 +7
☔ View full report in Codecov by Sentry. |
No description provided.