chore: sync current WechatHookBot workspace
This commit is contained in:
45
plugins/MemberSync/config.toml
Normal file
45
plugins/MemberSync/config.toml
Normal file
@@ -0,0 +1,45 @@
|
||||
# 群成员信息同步插件配置文件
|
||||
|
||||
[database]
|
||||
# SQLite 数据库配置
|
||||
db_path = "data/member_sync.db" # 数据库文件路径(相对于插件目录)
|
||||
|
||||
[behavior]
|
||||
# 功能开关
|
||||
enabled = true
|
||||
|
||||
# 自动同步新成员(当有新用户加入群聊时自动更新数据库)
|
||||
auto_sync_new_members = true
|
||||
|
||||
# 自动更新群昵称(群成员修改群内昵称时)
|
||||
auto_sync_nickname_change = true
|
||||
|
||||
# 并发配置
|
||||
max_concurrency = 3 # 最大并发数(降低到5,避免API过载)
|
||||
request_delay = 0.2 # 每个请求之间的延迟(秒)
|
||||
|
||||
# 启用的群聊列表(为空则对所有群生效)
|
||||
enabled_groups = []
|
||||
|
||||
# 禁用的群聊列表
|
||||
disabled_groups = []
|
||||
|
||||
# 更新触发关键词
|
||||
update_keywords = ["/更新群成员", "更新群成员", "/sync", "同步成员"]
|
||||
|
||||
# 全量更新触发关键词(同步所有群)
|
||||
update_all_keywords = ["/更新全部群成员", "更新全部群成员", "/syncall", "同步全部成员"]
|
||||
|
||||
# 管理员配置(只有管理员可以触发更新)
|
||||
admins = ["wxid_rm8cr2qjf45n12"]
|
||||
|
||||
[messages]
|
||||
# 回复消息模板
|
||||
update_start = "开始同步群成员信息..."
|
||||
update_success = "✅ 同步完成!\n📊 总计:{total}人\n➕ 新增:{added}人\n🔄 更新:{updated}人"
|
||||
update_error = "❌ 同步失败:{error}"
|
||||
update_all_start = "开始同步所有群成员信息,期间暂停消息处理,请稍候..."
|
||||
update_all_success = "✅ 全量同步完成!\n🏠 群聊数:{groups}\n📊 总计:{total}人\n➕ 新增:{added}人\n🔄 更新:{updated}人"
|
||||
update_all_error = "❌ 全量同步失败:{error}"
|
||||
permission_denied = "❌ 权限不足,只有管理员可以执行此操作"
|
||||
not_in_group = "❌ 请在群聊中使用此命令"
|
||||
Reference in New Issue
Block a user