Update docs

This commit is contained in:
Richard Chien
2018-12-27 12:14:19 +08:00
parent 20ad2d0aa2
commit 0d986de090
2 changed files with 25 additions and 2 deletions

View File

@ -438,6 +438,28 @@ sidebar: auto
在 `127.0.0.1:8080` 运行全局 NoneBot 对象。
### `load_plugin(module_name)`
- **说明:**
加载插件(等价于导入模块)。
- **参数:**
- `module_name: str`: 模块名
- **返回:**
- `bool`: 加载成功
- **用法:**
```python
none.load_plugin('none.plugins.base')
```
加载 `none.plugins.base` 插件。
### `load_plugins(plugin_dir, module_prefix)`
- **说明:**
@ -451,7 +473,7 @@ sidebar: auto
- **返回:**
- `None`
- `int:` 加载成功的插件数量
- **用法:**
@ -470,7 +492,7 @@ sidebar: auto
- **返回:**
- `None`
- `int:` 加载成功的插件数量
- **用法:**