Files
NeoBot/config.toml
K2cr2O1 ff4a4d92a5 feat: 添加多线程架构支持并优化性能
实现线程管理器以支持高并发场景,添加GIL-free模式提升Python 3.14下的多线程性能
新增B站API集成和本地文件服务器功能,改进镜像插件支持GIF处理
更新文档说明多线程架构和GIL-free模式的使用方法
2026-03-01 16:01:51 +08:00

101 lines
2.4 KiB
TOML
Raw 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.
# NeoBot 配置文件示例
# 复制此文件并重命名为 config.toml 以使用
# NapCat WebSocket 配置
[napcat_ws]
uri = "ws://114.66.61.199:3001"
# WebSocket 连接地址
token = "KoIAF.mcEHzxrPYF"
# 重连间隔(秒)
reconnect_interval = 5
[reverse_ws]
enabled = true # 是否启用
host = "0.0.0.0" # 监听地址
port = 3002 # 监听端口
token = ""
# Bot 基础配置
[bot]
# 命令前缀列表
command = ["。"]
# 是否忽略自己的消息
ignore_self_message = true
# 权限不足时的消息
permission_denied_message = "权限不足,需要 {permission_name} 权限"
# Redis 配置
[redis]
# Redis 主机地址
host = "114.66.61.199"
# Redis 端口
port = 37080
# Redis 数据库编号
db = 0
# Redis 密码
password = "redis_n7Ke76"
# MySQL 配置
[mysql]
# MySQL 主机地址
host = "114.66.61.199"
# MySQL 端口
port = 42398
# MySQL 用户名
user = "neobot"
# MySQL 密码
password = "neobot"
# MySQL 数据库名称
db = "neobot"
# Docker 配置
[docker]
# Docker 基础 URL可选
base_url = "tcp://101.36.126.55:2376"
# 沙箱镜像名称
sandbox_image = "sanbox:latest"
# 超时时间(秒)
timeout = 10
# 并发限制
concurrency_limit = 5
# 是否验证 TLS
tls_verify = true
# CA 证书路径(可选)
ca_cert_path = "ca/ca.pem"
# 客户端证书路径(可选)
client_cert_path = "ca/cert.pem"
# 客户端密钥路径(可选)
client_key_path = "ca/key.pem"
[image_manager]
# 图片高度
image_height = 1920
# 图片宽度
image_width = 1080
# 线程管理配置
[threading]
# 主线程池最大工作线程数 (1-100)
max_workers = 10
# 客户端线程池最大工作线程数 (1-50)
client_max_workers = 5
# 线程名称前缀
thread_name_prefix = "NeoBot-Thread"
# Bilibili 配置
[bilibili]
sessdata = "38140b76%2C1787735191%2Cf39c3%2A21CjDklI7Qvv-0Hsw7aux5cNxgEfNMeYwkTS0OoqZdyK9btBgYoDWbNY1vWb6mSixWvOkSVkUwYzRyb1FRcUJzaEtidkcxNVNMMzdvdTdKQl84aGdLSnJ6THZIT3c5dFhkbWRUVnJCWi1WZnpMR0FtQl96R0RzaHJZV3RQUGtLWGJNc09jZG9STnh3IIEC"
bili_jct = "2f0fe1768ab257630e554a82c3f01fe2"
buvid3 = "5AA3B81B-5CC0-2DAD-4DA6-B6741BA2F77D49525infoc"
dedeuserid = ""
# 本地文件服务器配置
# 用于下载远程文件到本地并提供本地访问,解决 NapCat 无法直接访问某些远程资源的问题
[local_file_server]
enabled = true # 是否启用
host = "101.36.126.55" # 监听地址
port = 3003 # 监听端口