XYBotV2-core/main_config.toml
lxh 2a180db6c6
Some checks failed
BuildImage / build-image (push) Failing after 2m59s
🎉 first commit
2025-02-17 09:18:57 +08:00

48 lines
2.0 KiB
TOML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[WechatAPIServer]
port = 9000 # WechatAPI服务器端口默认9000如有冲突可修改
mode = "release" # 运行模式release(生产环境)debug(调试模式)
redis-host = "127.0.0.1" # Redis服务器地址本地使用127.0.0.1
redis-port = 6379 # Redis端口默认6379
redis-password = "" # Redis密码如果有设置密码则填写
redis-db = 0 # Redis数据库编号默认0
# XYBot 核心设置
[XYBot]
version = "v1.0.0" # 版本号,请勿修改
ignore-protection = false # 是否忽略风控保护机制建议保持false
database-url = "sqlite:///xybot.db" # SQLite数据库地址一般无需修改
# 管理员设置
admins = ["admin-wxid", "admin-wxid"] # 管理员的wxid列表可从消息日志中获取
disabled-plugins = ["ExamplePlugin"] # 禁用的插件列表,不需要的插件名称填在这里
timezone = "Asia/Shanghai" # 时区设置,中国用户使用 Asia/Shanghai
# 实验性功能如果main_config.toml配置改动或者plugins文件夹有改动自动重启。可以在开发时使用不建议在生产环境使用。
auto-restart = false # 仅建议在开发时启用生产环境保持false
# 消息过滤设置
ignore-mode = "None" # 消息处理模式:
# "None" - 处理所有消息
# "Whitelist" - 仅处理白名单消息
# "Blacklist" - 屏蔽黑名单消息
whitelist = [# 白名单列表
"wxid_1", # 个人用户微信ID
"wxid_2",
"chatroom@111", # 群聊ID
"chatroom@222"
]
blacklist = [# 黑名单列表
"wxid_3", # 个人用户微信ID
"wxid_4",
"chatroom@333", # 群聊ID
"chatroom@444"
]
# OpenAI格式API设置
[OpenAI]
api-key = "sk-xxxx" # OpenAI格式API密钥必须填写有效的API Key
base-url = "https://api.openai.com/v1" # API接口地址
# 使用OpanAI官方API填写 https://api.openai.com/v1
# 使用其他API或者代理API需要修改为对应地址