From db61a93de857fbe066e682c8fecd584e64f1855a Mon Sep 17 00:00:00 2001 From: knva Date: Thu, 4 Mar 2021 10:52:37 +0000 Subject: [PATCH 1/2] =?UTF-8?q?:beers:=20publish=20biliav=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E8=BD=AC=E6=8D=A2=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vuepress/public/plugins.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/.vuepress/public/plugins.json b/docs/.vuepress/public/plugins.json index 8fa09912..bba3b1bd 100644 --- a/docs/.vuepress/public/plugins.json +++ b/docs/.vuepress/public/plugins.json @@ -198,5 +198,13 @@ "desc": "输入拼音首字母,猜测文字", "name": "缩写查询器", "repo": "anlen123/nonebot_plugin_abbrreply" + }, + { + "id": "nonebot_plugin_biliav", + "link": "nonebot_plugin_biliav", + "author": "knva", + "desc": "将用户发的av号或者bv号转成小程序返回", + "name": "biliav小程序转换器", + "repo": "knva/nonebot_plugin_biliav" } -] +] \ No newline at end of file From 59a855f2eda4112d8288e0efab1342dd032d15dc Mon Sep 17 00:00:00 2001 From: nonebot Date: Thu, 4 Mar 2021 10:55:07 +0000 Subject: [PATCH 2/2] :memo: update api docs --- docs/api/nonebot.md | 62 ++++++++++++++++++++++----------------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/docs/api/nonebot.md b/docs/api/nonebot.md index c11cf2be..6ca516aa 100644 --- a/docs/api/nonebot.md +++ b/docs/api/nonebot.md @@ -70,6 +70,37 @@ sidebarDepth: 0 * `require` => `nonebot.plugin.require` +## `get_driver()` + + +* **说明** + + 获取全局 Driver 对象。可用于在计划任务的回调中获取当前 Driver 对象。 + + + +* **返回** + + + * `Driver`: 全局 Driver 对象 + + + +* **异常** + + + * `ValueError`: 全局 Driver 对象尚未初始化 (nonebot.init 尚未调用) + + + +* **用法** + + +```python +driver = nonebot.get_driver() +``` + + ## `get_app()` @@ -163,37 +194,6 @@ bots = nonebot.get_bots() ``` -## `get_driver()` - - -* **说明** - - 获取全局 Driver 对象。可用于在计划任务的回调中获取当前 Driver 对象。 - - - -* **返回** - - - * `Driver`: 全局 Driver 对象 - - - -* **异常** - - - * `ValueError`: 全局 Driver 对象尚未初始化 (nonebot.init 尚未调用) - - - -* **用法** - - -```python -driver = nonebot.get_driver() -``` - - ## `init(*, _env_file=None, **kwargs)`