Files
HeXi/hexi/plugins/nonebot_plugin_galgame_card/config.py
T
sansenhoshiandClaude b61d09f09f Add HeXi bot codebase: custom plugins, web frontends, tests
- 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>
2026-09-01 13:13:40 +08:00

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)