实际上plugin_manager已经通用了相同的方法
This commit is contained in:
@@ -26,12 +26,4 @@ def register_plugin(cls):
|
|||||||
plugin_manager.plugin_classes[plugin_name] = cls # type: ignore
|
plugin_manager.plugin_classes[plugin_name] = cls # type: ignore
|
||||||
logger.debug(f"插件类已注册: {plugin_name}")
|
logger.debug(f"插件类已注册: {plugin_name}")
|
||||||
|
|
||||||
return cls
|
return cls
|
||||||
|
|
||||||
def register_event_plugin(cls, *args, **kwargs):
|
|
||||||
|
|
||||||
"""事件插件注册装饰器
|
|
||||||
|
|
||||||
用法:
|
|
||||||
@register_event_plugin
|
|
||||||
"""
|
|
||||||
Reference in New Issue
Block a user