Files

39 lines
1.2 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.
# 消息记录插件配置
[database]
host = "43.137.46.150"
port = 3306
user = "80012029Lz"
password = "wechat_message"
database = "wechat_message"
charset = "utf8mb4"
[minio]
enabled = true
endpoint = "115.190.113.141:19000"
access_key = "admin"
secret_key = "80012029Lz"
bucket = "wechat"
secure = false
public_base_url = "http://115.190.113.141:19000"
[redis]
enabled = true # 是否启用 Redis 缓存
host = "localhost" # Redis 服务器地址
port = 6379 # Redis 端口
password = "" # Redis 密码(无密码留空)
db = 0 # Redis 数据库编号
ttl = 259200 # 缓存过期时间3天 = 3*24*60*60
[behavior]
enabled = true # 是否启用消息记录
log_text = true # 记录文本消息
log_image = true # 记录图片消息
log_voice = true # 记录语音消息
log_video = true # 记录视频消息
log_file = true # 记录文件消息
log_emoji = true # 记录表情包消息
log_bot_messages = true # 记录机器人自身发送的消息
fetch_avatar = true # 是否获取头像URL
bot_avatar_url = "https://img.functen.cn/file/1763546795877_image.png" # 机器人头像URL可选留空则尝试自动获取