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 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)`