mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-acgnshow.git
synced 2025-09-07 04:36:25 +00:00
✨初次提交
This commit is contained in:
11
nonebot_plugin_acgnshow/config.py
Normal file
11
nonebot_plugin_acgnshow/config.py
Normal file
@ -0,0 +1,11 @@
|
||||
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):
|
||||
pagesize: int = 8
|
||||
|
||||
config: ConfigModel = get_plugin_config(ConfigModel)
|
Reference in New Issue
Block a user