mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-23 12:37:38 +08:00
19 lines
399 B
Python
19 lines
399 B
Python
from liteyuki.plugin.model import Plugin, PluginMetadata
|
|
from liteyuki.plugin.load import load_plugin, load_plugins, _plugins
|
|
|
|
__all__ = [
|
|
"PluginMetadata",
|
|
"Plugin",
|
|
"load_plugin",
|
|
"load_plugins",
|
|
]
|
|
|
|
|
|
def get_loaded_plugins() -> dict[str, Plugin]:
|
|
"""
|
|
获取已加载的插件
|
|
Returns:
|
|
dict[str, Plugin]: 插件字典
|
|
"""
|
|
return _plugins
|