forked from carrydela/autoClaude
feat: Implement account pooling for concurrent scheduling and introduce a new permissions module.
This commit is contained in:
@@ -17,6 +17,21 @@ product_id = "prod_TXU4hGh2EDxASl"
|
||||
bot_token = "your_bot_token_here" # @BotFather 获取
|
||||
allowed_users = [] # 允许使用的用户ID列表(空=不限制)
|
||||
|
||||
# --- 角色权限控制 ---
|
||||
# 每个 [[telegram.roles]] 定义一个角色,包含用户列表和允许的命令
|
||||
# commands = ["*"] 表示全部命令
|
||||
# 如果不配置 roles,所有 allowed_users 拥有全部权限
|
||||
|
||||
[[telegram.roles]]
|
||||
name = "admin"
|
||||
users = [] # 管理员用户 ID
|
||||
commands = ["*"] # 全部命令
|
||||
|
||||
[[telegram.roles]]
|
||||
name = "user"
|
||||
users = [] # 普通用户 ID
|
||||
commands = ["accounts", "verify", "stats", "status", "help", "start"]
|
||||
|
||||
# --- 邮箱系统(轮询使用,API 接口相同)---
|
||||
# 可添加多个 [[mail]] 块
|
||||
# api_token: 直接配置 API Token,无需管理员账号密码
|
||||
|
||||
Reference in New Issue
Block a user