Files
abot/plugins/maibot_adapter/config.toml

46 lines
1.5 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.
[MaiBotAdapter]
enable = true
# 命令触发词:
# 1. 不需要前缀,直接使用 “麦麦 你好” 这种形式即可;
# 2. 群聊里也支持 @机器人 后直接转发给 MaiBot
# 3. 如果你后面希望只保留自动插话入口,可以把命令缩减到一个内部调试词。
commands = ["麦麦", "maibot", "mai"]
command-tip = """
🤖MaiBot 对话指令:
麦麦 你好
"""
# 是否允许群聊里通过 @机器人 触发。
allow_group_at = true
# MaiBot WebUI 服务根地址:
# 1. 不要带末尾斜杠;
# 2. 插件会基于这个地址自动请求:
# - /api/webui/auth/verify
# - /api/webui/ws-token
# - /ws
server_url = "http://192.168.2.240:8001"
# MaiBot WebUI 的访问令牌:
# 1. 这是你在 MaiBot WebUI 登录页里使用的 token
# 2. 插件会先调用 auth/verify 写入 Cookie再换取一次性 ws-token
# 3. 建议部署完成后改成你自己的正式 token。
access_token = ""
# WebSocket 聊天的超时配置(秒):
# 1. connect_timeout 控制 HTTP/WS 建连超时;
# 2. reply_timeout 控制发送问题后等待 MaiBot 回复的最长时间。
connect_timeout = 15
reply_timeout = 90
# 会话维度:
# 1. room 表示同一个群共享一个 MaiBot 身份语境;
# 2. sender 表示每个发言人各自独立会话;
# 3. 当前默认 room更适合群聊人格连续性。
session_scope = "room"
# 是否校验 HTTPS 证书。
# 如果你后面给 MaiBot 挂了自签名证书,可以临时改成 false。
verify_ssl = true