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