mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-30 14:54:45 +08:00
26 lines
523 B
Markdown
26 lines
523 B
Markdown
---
|
|
title: liteyuki.plugins.plugin_loader
|
|
---
|
|
### *func* `default_plugins_loader()`
|
|
|
|
|
|
|
|
**说明**: 默认插件加载器,应在初始化时调用
|
|
|
|
|
|
<details>
|
|
<summary> <b>源代码</b> </summary>
|
|
|
|
```python
|
|
def default_plugins_loader():
|
|
"""
|
|
默认插件加载器,应在初始化时调用
|
|
"""
|
|
for plugin in get_config('liteyuki.plugins', []):
|
|
load_plugin(plugin)
|
|
for plugin_dir in get_config('liteyuki.plugin_dirs', ['src/liteyuki_plugins']):
|
|
load_plugins(plugin_dir)
|
|
```
|
|
</details>
|
|
|