mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-acgnshow.git
synced 2024-11-11 01:27:39 +08:00
15 lines
322 B
Python
15 lines
322 B
Python
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
|
|
|
|
|
|
config: ConfigModel = get_plugin_config(ConfigModel)
|