mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-06 03:46:10 +08:00
23 lines
663 B
Python
23 lines
663 B
Python
import nonebot
|
|
from pydantic import BaseSettings
|
|
|
|
|
|
class PlugConfig(BaseSettings):
|
|
|
|
bison_config_path: str = ""
|
|
bison_use_pic: bool = False
|
|
bison_init_filter: bool = True
|
|
bison_use_queue: bool = True
|
|
bison_outer_url: str = "http://localhost:8080/bison/"
|
|
bison_filter_log: bool = False
|
|
bison_to_me: bool = True
|
|
bison_skip_browser_check: bool = False
|
|
bison_use_pic_merge: bool = True#多图片时启用图片合并转发(仅限群),当bison_use_queue为False时该配置不会生效,
|
|
|
|
class Config:
|
|
extra = "ignore"
|
|
|
|
|
|
global_config = nonebot.get_driver().config
|
|
plugin_config = PlugConfig(**global_config.dict())
|