nonebot-plugin-acgnshow/nonebot_plugin_acgnshow/config.py

11 lines
318 B
Python
Raw Normal View History

2024-07-11 18:26:21 +08:00
from pathlib import Path
from pydantic import BaseModel
from nonebot import get_plugin_config
RES_PATH = Path(__file__).parent / "res"
TEMPLATE_NAME = "template.html"
BGIMAGE_PATH = RES_PATH / "bgimage"
class ConfigModel(BaseModel):
acgnshow_pagesize: int = 8
2024-07-11 18:26:21 +08:00
config: ConfigModel = get_plugin_config(ConfigModel)