Files
mig1/example.config.toml
T

40 lines
1.1 KiB
TOML

# daily_bot 配置示例
# 将此文件复制为 config.toml 并按你的环境修改。
[matrix]
# Matrix homeserver 域名(不带 https://)。
# 例: matrix.org / your-company.com
home_server = "matrix.org"
# 机器人账号(完整 Matrix 用户 ID)。
# 格式: @用户名:域名
username = "@daily-bot:matrix.org"
# 机器人密码。
password = "replace-with-strong-password"
# 需要管理/监听的房间列表。
[[matrix.rooms]]
# 房间 ID。
# 格式: !xxxx:域名
room_id = "!exampleRoomA:matrix.org"
# 是否开启“长期未打卡踢人”逻辑。
kick_member_if_they_didnot_checkin_for_long_time = true
# 触发踢人的阈值(单位由你的业务逻辑决定,当前代码仅做配置读取)。
kick_long_time = 30
# 白名单用户(不会被踢)。
# 格式: @用户名:域名
white_list = ["@admin:matrix.org", "@owner:matrix.org"]
[[matrix.rooms]]
room_id = "!exampleRoomB:matrix.org"
# 可选字段都可以不写;省略时表示不启用对应能力。
# kick_member_if_they_didnot_checkin_for_long_time = false
# kick_long_time = 0
# white_list = []