Skip to content

Commit

Permalink
🔀 Merge pull request #16 from nonebot/dev
Browse files Browse the repository at this point in the history
Pre Release 2.0.0a2
  • Loading branch information
yanyongyu authored Sep 30, 2020
2 parents 73e6062 + 1aac3d5 commit a308f4d
Show file tree
Hide file tree
Showing 53 changed files with 2,993 additions and 190 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/api_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Set up Python
uses: actions/setup-python@v2
with:
Expand All @@ -27,10 +27,10 @@ jobs:
- name: Build Doc
run: poetry run sphinx-build -M markdown ./docs_build ./build

- name: Copy Files
run: cp -r ./build/markdown/* ./docs/api/

- run: |
git config user.name nonebot
git config user.email [email protected]
Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<div align=center>
<img src="docs/.vuepress/public/logo.png" width="200" height="200">
<img src="./docs/.vuepress/public/logo.png" width="200" height="200">

# NoneBot

[![License](https://img.shields.io/github/license/richardchien/nonebot.svg)](LICENSE)
[![PyPI](https://img.shields.io/pypi/v/nonebot.svg)](https://pypi.python.org/pypi/nonebot)
[![License](https://img.shields.io/github/license/nonebot/nonebot2.svg)](LICENSE)
[![PyPI](https://img.shields.io/pypi/v/nonebot2.svg)](https://pypi.python.org/pypi/nonebot2)
![Python Version](https://img.shields.io/badge/python-3.7+-blue.svg)
![CQHTTP Version](https://img.shields.io/badge/cqhttp-11+-black.svg)
[![QQ 群](https://img.shields.io/badge/qq%E7%BE%A4-768887710-orange.svg)](https://jq.qq.com/?_wv=1027&k=5OFifDh)
Expand All @@ -16,8 +16,6 @@

## 简介

**NoneBot2 尚在开发中**

NoneBot2 是一个可扩展的 Python 异步机器人框架,它会对机器人收到的消息进行解析和处理,并以插件化的形式,分发给消息所对应的命令处理器和自然语言处理器,来完成具体的功能。

除了起到解析消息的作用,NoneBot 还为插件提供了大量实用的预设操作和权限控制机制,尤其对于命令处理器,它更是提供了完善且易用的会话机制和内部调用机制,以分别适应命令的连续交互和插件内部功能复用等需求。
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@


* [nonebot.exception](exception.html)


* [nonebot.adapters.cqhttp](adapters/cqhttp.html)
41 changes: 41 additions & 0 deletions archive/2.0.0a2/api/adapters/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
contentSidebar: true
sidebarDepth: 0
---

# NoneBot.adapters 模块


## _class_ `BaseBot`

基类:`abc.ABC`


## _class_ `BaseEvent`

基类:`abc.ABC`


### `_raw_event`

原始 event


## _class_ `BaseMessageSegment`

基类:`abc.ABC`


## _class_ `BaseMessage`

基类:`list`, `abc.ABC`


### `append(obj)`

Append object to the end of the list.


### `extend(obj)`

Extend list by appending elements from the iterable.
Loading

0 comments on commit a308f4d

Please sign in to comment.