mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-08 12:53:00 +08:00
16 lines
380 B
Python
16 lines
380 B
Python
from pydantic import BaseSettings
|
|
import nonebot
|
|
|
|
class PlugConfig(BaseSettings):
|
|
|
|
hk_reporter_config_path: str = ""
|
|
hk_reporter_use_pic: bool = False
|
|
hk_reporter_use_local: bool = False
|
|
hk_reporter_init_filter: bool = True
|
|
|
|
class Config:
|
|
extra = 'ignore'
|
|
|
|
global_config = nonebot.get_driver().config
|
|
plugin_config = PlugConfig(**global_config.dict())
|