LiteyukiBot-TriM/liteyuki/plugin/__init__.py

20 lines
413 B
Python
Raw Normal View History

2024-10-06 02:39:10 +08:00
from liteyuki.plugin.model import Plugin, PluginMetadata, PluginType
2024-08-12 11:44:30 +08:00
from liteyuki.plugin.load import load_plugin, load_plugins, _plugins
__all__ = [
2024-10-06 02:39:10 +08:00
"PluginMetadata",
"Plugin",
"PluginType",
"load_plugin",
"load_plugins",
]
def get_loaded_plugins() -> dict[str, Plugin]:
"""
获取已加载的插件
Returns:
dict[str, Plugin]: 插件字典
"""
return _plugins