Commit Graph

11 Commits

Author SHA1 Message Date
John Richard
a79253c714 re-style: 格式化代码 2025-11-19 23:13:20 +08:00
Windpicker-owo
df3c616d09 ruff,私聊视为提及了bot 2025-11-19 23:07:30 +08:00
雅诺狐
3414fea3fc refactor(config): 简化EULA验证并统一环境变量配置管理
- 重构EULA验证机制,从复杂的文件哈希验证改为简单的环境变量验证
- 统一host和port配置,优先从环境变量读取而非配置文件
- 移除ServerConfig配置类,简化配置结构
- 添加.env文件自动创建和管理功能
- 更新相关模板和文档注释
2025-11-19 23:00:52 +08:00
minecraft1024a
a935a775da rrrrrrrrrrrrruuuuuuuuuuuuuuuffffffffffffffffffffffffffff x3 2025-11-19 23:00:16 +08:00
minecraft1024a
26e20b2cd7 refactor(config): 移除.env依赖并引入服务器配置模型
将项目配置系统从依赖.env文件和环境变量迁移到使用Pydantic模型进行集中管理。此举通过移除`python-dotenv`库简化了环境设置,并提高了配置的类型安全性和可维护性。

主要变更包括:
- 移除`bot.py`中的.env加载逻辑。
- 新增`ServerConfig`模型来管理服务器的主机和端口。
- 更新`src/common/server.py`和`src/common/message/api.py`以从全局配置对象获取服务器设置,取代了`os.environ`。
- 从配置中移除了已废弃的`MaizoneIntercomConfig`。
- 在`bot_config_template.toml`中添加了新的`[server]`配置部分。
2025-11-19 23:00:07 +08:00
UnCLAS-Prommer
7ef0bfb7c8 完成所有类型注解的修复 2025-07-13 00:19:54 +08:00
春河晴
302240478c update logger configuration 2025-06-11 15:48:59 +09:00
春河晴
7b4e7b94f8 use structlog instead of loguru 2025-06-11 15:17:08 +09:00
tcmofashi
5536c5bf76 feat: 新增maim_message配置,支持wss,tcp模式,支持token 2025-05-23 18:10:37 +08:00
tcmofashi
cb0cbfe84d fix: 为maim_message添加logger 2025-05-15 07:36:07 +08:00
SengokuCola
fed71bccad fix:调整目录结构,优化hfc prompt,移除日程,移除动态和llm判断willing模式, 2025-05-13 18:37:55 +08:00