mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-14 13:42:56 +08:00
24 lines
519 B
Python
24 lines
519 B
Python
from nonebot.plugin import PluginMetadata
|
|
from pydantic import BaseModel
|
|
|
|
from zhenxun.configs.path_config import IMAGE_PATH
|
|
from zhenxun.models.plugin_info import PluginInfo
|
|
|
|
SUPERUSER_HELP_IMAGE = IMAGE_PATH / "SUPERUSER_HELP.png"
|
|
if SUPERUSER_HELP_IMAGE.exists():
|
|
SUPERUSER_HELP_IMAGE.unlink()
|
|
|
|
|
|
class PluginData(BaseModel):
|
|
"""
|
|
插件信息
|
|
"""
|
|
|
|
plugin: PluginInfo
|
|
"""插件信息"""
|
|
metadata: PluginMetadata
|
|
"""元数据"""
|
|
|
|
class Config:
|
|
arbitrary_types_allowed = True
|