diff --git a/docs/.vuepress/public/plugins.json b/docs/.vuepress/public/plugins.json index 8fa099121cf3..bba3b1bd13d5 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 c11cf2bedd9a..6ca516aae366 100644 --- a/docs/api/nonebot.md +++ b/docs/api/nonebot.md @@ -70,19 +70,19 @@ sidebarDepth: 0 * `require` => `nonebot.plugin.require` -## `get_app()` +## `get_driver()` * **说明** - 获取全局 Driver 对应 Server App 对象。 + 获取全局 Driver 对象。可用于在计划任务的回调中获取当前 Driver 对象。 * **返回** - * `Any`: Server App 对象 + * `Driver`: 全局 Driver 对象 @@ -97,23 +97,23 @@ sidebarDepth: 0 ```python -app = nonebot.get_app() +driver = nonebot.get_driver() ``` -## `get_asgi()` +## `get_app()` * **说明** - 获取全局 Driver 对应 Asgi 对象。 + 获取全局 Driver 对应 Server App 对象。 * **返回** - * `Any`: Asgi 对象 + * `Any`: Server App 对象 @@ -128,23 +128,23 @@ app = nonebot.get_app() ```python -asgi = nonebot.get_asgi() +app = nonebot.get_app() ``` -## `get_bots()` +## `get_asgi()` * **说明** - 获取所有通过 ws 连接 NoneBot 的 Bot 对象。 + 获取全局 Driver 对应 Asgi 对象。 * **返回** - * `Dict[str, Bot]`: 一个以字符串 ID 为键,Bot 对象为值的字典 + * `Any`: Asgi 对象 @@ -159,23 +159,23 @@ asgi = nonebot.get_asgi() ```python -bots = nonebot.get_bots() +asgi = nonebot.get_asgi() ``` -## `get_driver()` +## `get_bots()` * **说明** - 获取全局 Driver 对象。可用于在计划任务的回调中获取当前 Driver 对象。 + 获取所有通过 ws 连接 NoneBot 的 Bot 对象。 * **返回** - * `Driver`: 全局 Driver 对象 + * `Dict[str, Bot]`: 一个以字符串 ID 为键,Bot 对象为值的字典 @@ -190,7 +190,7 @@ bots = nonebot.get_bots() ```python -driver = nonebot.get_driver() +bots = nonebot.get_bots() ```