mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-02-07 19:36:56 +08:00
commit
15c6f30fc3
@ -198,5 +198,13 @@
|
|||||||
"desc": "输入拼音首字母,猜测文字",
|
"desc": "输入拼音首字母,猜测文字",
|
||||||
"name": "缩写查询器",
|
"name": "缩写查询器",
|
||||||
"repo": "anlen123/nonebot_plugin_abbrreply"
|
"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"
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -70,6 +70,37 @@ sidebarDepth: 0
|
|||||||
* `require` => `nonebot.plugin.require`
|
* `require` => `nonebot.plugin.require`
|
||||||
|
|
||||||
|
|
||||||
|
## `get_driver()`
|
||||||
|
|
||||||
|
|
||||||
|
* **说明**
|
||||||
|
|
||||||
|
获取全局 Driver 对象。可用于在计划任务的回调中获取当前 Driver 对象。
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
* **返回**
|
||||||
|
|
||||||
|
|
||||||
|
* `Driver`: 全局 Driver 对象
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
* **异常**
|
||||||
|
|
||||||
|
|
||||||
|
* `ValueError`: 全局 Driver 对象尚未初始化 (nonebot.init 尚未调用)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
* **用法**
|
||||||
|
|
||||||
|
|
||||||
|
```python
|
||||||
|
driver = nonebot.get_driver()
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## `get_app()`
|
## `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)`
|
## `init(*, _env_file=None, **kwargs)`
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user