From e0bd7e11d5d7fef8e626fc947d257cb310c370cd Mon Sep 17 00:00:00 2001 From: StarHeart Date: Sun, 20 Jun 2021 09:25:55 +0800 Subject: [PATCH 1/2] :fire: remove unnecessary print --- nonebot/plugin/manager.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/nonebot/plugin/manager.py b/nonebot/plugin/manager.py index 8bcf97af..2cb97d79 100644 --- a/nonebot/plugin/manager.py +++ b/nonebot/plugin/manager.py @@ -197,8 +197,6 @@ class PluginFinder(MetaPathFinder): origin_spec.origin) newname = manager._rewrite_module_name(rel_name or fullname) - print("RESULT::::::", newname, rel_name or fullname, rel_name, - fullname, origin_spec and origin_spec.origin) if newname: spec = PathFinder.find_spec( newname, path or [*manager.search_path, *sys.path], From ef5a49933f9dcb996d60f8da1542629d560e0d13 Mon Sep 17 00:00:00 2001 From: nonebot Date: Sun, 20 Jun 2021 01:28:07 +0000 Subject: [PATCH 2/2] :memo: update api docs --- docs/api/adapters/ding.md | 2 +- docs/api/adapters/mirai.md | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/api/adapters/ding.md b/docs/api/adapters/ding.md index 61a89e3a..b4eae9e4 100644 --- a/docs/api/adapters/ding.md +++ b/docs/api/adapters/ding.md @@ -208,7 +208,7 @@ sidebarDepth: 0 ## _class_ `MessageSegment` -基类:`Mapping`, `abc.ABC`, `Generic`[`nonebot.adapters._base.TM`] +基类:[`nonebot.adapters._base.MessageSegment`](README.md#nonebot.adapters._base.MessageSegment)[`Message`] 钉钉 协议 MessageSegment 适配。具体方法参考协议消息段类型或源码。 diff --git a/docs/api/adapters/mirai.md b/docs/api/adapters/mirai.md index 8a7247e3..137c1c7c 100644 --- a/docs/api/adapters/mirai.md +++ b/docs/api/adapters/mirai.md @@ -727,7 +727,7 @@ mirai-api-http 正向 Websocket 协议 Bot 适配。 ## _class_ `MessageSegment` -基类:`Mapping`, `abc.ABC`, `Generic`[`nonebot.adapters._base.TM`] +基类:[`nonebot.adapters._base.MessageSegment`](README.md#nonebot.adapters._base.MessageSegment)[`MessageChain`] Mirai-API-HTTP 协议 MessageSegment 适配。具体方法参考 [mirai-api-http 消息类型](https://github.com/project-mirai/mirai-api-http/blob/master/docs/MessageType.md) @@ -1047,7 +1047,7 @@ Mirai 协议 Message 适配 # NoneBot.adapters.mirai.event 模块 -::: warning +::: warning 事件中为了使代码更加整洁, 我们采用了与PEP8相符的命名规则取代Mirai原有的驼峰命名 部分字段可能与文档在符号上不一致 @@ -1078,17 +1078,17 @@ mirai-api-http 协议事件,字段与 mirai-api-http 一致。各事件字段 * **说明** + 用户权限枚举类 -用户权限枚举类 - -> -> * `OWNER`: 群主 + > + > * `OWNER`: 群主 -> * `ADMINISTRATOR`: 群管理 + > * `ADMINISTRATOR`: 群管理 -> * `MEMBER`: 普通群成员 + > * `MEMBER`: 普通群成员 + ## _class_ `MessageEvent` @@ -1467,17 +1467,17 @@ Bot被邀请入群申请 * **说明** + 用户权限枚举类 -用户权限枚举类 - -> -> * `OWNER`: 群主 + > + > * `OWNER`: 群主 -> * `ADMINISTRATOR`: 群管理 + > * `ADMINISTRATOR`: 群管理 -> * `MEMBER`: 普通群成员 + > * `MEMBER`: 普通群成员 + ## _class_ `Event`