💡 add message docstring

This commit is contained in:
yanyongyu 2020-11-13 17:15:45 +08:00
parent 781ec1ef67
commit bc00c1be82
8 changed files with 38 additions and 6 deletions

View File

@ -128,6 +128,10 @@ module.exports = context => ({
title: "nonebot.plugin 模块", title: "nonebot.plugin 模块",
path: "plugin" path: "plugin"
}, },
{
title: "nonebot.message 模块",
path: "message"
},
{ {
title: "nonebot.matcher 模块", title: "nonebot.matcher 模块",
path: "matcher" path: "matcher"

View File

@ -13,6 +13,9 @@
* [nonebot.plugin](plugin.html) * [nonebot.plugin](plugin.html)
* [nonebot.message](message.html)
* [nonebot.matcher](matcher.html) * [nonebot.matcher](matcher.html)

View File

@ -158,7 +158,7 @@ sidebarDepth: 0
## _class_ `Bot` ## _class_ `Bot`
基类:[`nonebot.adapters.BaseBot`](#None) 基类:[`nonebot.adapters.BaseBot`](README.md#nonebot.adapters.BaseBot)
CQHTTP 协议 Bot 适配。继承属性参考 [BaseBot](./#class-basebot) 。 CQHTTP 协议 Bot 适配。继承属性参考 [BaseBot](./#class-basebot) 。
@ -270,7 +270,7 @@ CQHTTP 协议 Bot 适配。继承属性参考 [BaseBot](./#class-basebot) 。
## _class_ `Event` ## _class_ `Event`
基类:[`nonebot.adapters.BaseEvent`](#None) 基类:[`nonebot.adapters.BaseEvent`](README.md#nonebot.adapters.BaseEvent)
CQHTTP 协议 Event 适配。继承属性参考 [BaseEvent](./#class-baseevent) 。 CQHTTP 协议 Event 适配。继承属性参考 [BaseEvent](./#class-baseevent) 。
@ -412,13 +412,13 @@ CQHTTP 协议 Event 适配。继承属性参考 [BaseEvent](./#class-baseevent)
## _class_ `MessageSegment` ## _class_ `MessageSegment`
基类:[`nonebot.adapters.BaseMessageSegment`](#None) 基类:[`nonebot.adapters.BaseMessageSegment`](README.md#nonebot.adapters.BaseMessageSegment)
CQHTTP 协议 MessageSegment 适配。具体方法参考协议消息段类型或源码。 CQHTTP 协议 MessageSegment 适配。具体方法参考协议消息段类型或源码。
## _class_ `Message` ## _class_ `Message`
基类:[`nonebot.adapters.BaseMessage`](#None) 基类:[`nonebot.adapters.BaseMessage`](README.md#nonebot.adapters.BaseMessage)
CQHTTP 协议 Message 适配。 CQHTTP 协议 Message 适配。

View File

@ -12,7 +12,7 @@ sidebarDepth: 0
## _class_ `Driver` ## _class_ `Driver`
基类:[`nonebot.drivers.BaseDriver`](#None) 基类:[`nonebot.drivers.BaseDriver`](README.md#nonebot.drivers.BaseDriver)
FastAPI 驱动框架 FastAPI 驱动框架
@ -64,7 +64,7 @@ fastapi 使用的 logger
## _class_ `WebSocket` ## _class_ `WebSocket`
基类:[`nonebot.drivers.BaseWebSocket`](#None) 基类:[`nonebot.drivers.BaseWebSocket`](README.md#nonebot.drivers.BaseWebSocket)
### _property_ `closed` ### _property_ `closed`

8
docs/api/message.md Normal file
View File

@ -0,0 +1,8 @@
---
contentSidebar: true
sidebarDepth: 0
---
# NoneBot.message 模块
## 事件处理

View File

@ -5,6 +5,7 @@ NoneBot Api Reference
- `nonebot <nonebot.html>`_ - `nonebot <nonebot.html>`_
- `nonebot.config <config.html>`_ - `nonebot.config <config.html>`_
- `nonebot.plugin <plugin.html>`_ - `nonebot.plugin <plugin.html>`_
- `nonebot.message <message.html>`_
- `nonebot.matcher <matcher.html>`_ - `nonebot.matcher <matcher.html>`_
- `nonebot.rule <rule.html>`_ - `nonebot.rule <rule.html>`_
- `nonebot.permission <permission.html>`_ - `nonebot.permission <permission.html>`_

11
docs_build/message.rst Normal file
View File

@ -0,0 +1,11 @@
---
contentSidebar: true
sidebarDepth: 0
---
NoneBot.message 模块
======================
.. automodule:: nonebot.message
:members:
:show-inheritance:

View File

@ -1,3 +1,8 @@
"""
事件处理
========
"""
import asyncio import asyncio
from datetime import datetime from datetime import datetime