🔀 Merge pull request #259

Plugin: biliav小程序转换器
This commit is contained in:
Ju4tCode 2021-03-04 04:58:51 -06:00 committed by GitHub
commit 15c6f30fc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 40 additions and 32 deletions

View File

@ -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"
}
]
]

View File

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