- hexi core: message handling, rate limiting, cooldown, plugin manager - Custom plugins: BF stats, daily check-in, quotes, persona cards, etc. - Community plugins vendored under hexi/plugins with local fixes - Web admin frontends (learning-chat, persona-admin), unified hexi/web - Tests for rate_limit/cooldown/memes/persona; poetry.lock Co-Authored-By: Claude <noreply@anthropic.com>
20 lines
556 B
Python
20 lines
556 B
Python
"""插件配置(Web 管理后台)
|
|
|
|
env 变量名与字段名对应(大写):WEB_ENABLE / WEB_USERNAME / WEB_PASSWORD / WEB_SECRET_KEY
|
|
"""
|
|
|
|
from nonebot import get_plugin_config
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class Config(BaseModel):
|
|
web_enable: bool = True
|
|
web_username: str = "admin"
|
|
web_password: str = "galgame"
|
|
web_secret_key: str = "galgame-card-secret-key"
|
|
# 图片多模态识别(预留接口,当前未启用;将来接入后置 True)
|
|
image_vision_enabled: bool = False
|
|
|
|
|
|
config = get_plugin_config(Config)
|