Files
GPTTeamBOT/.env.example
Sarteambot Admin 0fde6d4a0b feat: 初始化 ChatGPT Team 管理机器人
核心功能:
- 实现基于 Telegram Inline Button 交互的后台面板与用户端
- 支持通过账密登录和 RT (Refresh Token) 方式添加 ChatGPT Team 账号
- 支持管理、拉取和删除待处理邀请,支持一键清空多余邀请
- 支持按剩余容量自动生成邀请兑换码,支持分页查看与一键清空未使用兑换码
- 随机邀请功能:成功拉人后自动核销兑换码
- 定时检测 Token 状态,实现自动续订/刷新并拦截封禁账号 (处理 401/402 错误)

系统与配置:
- 使用 PostgreSQL 数据库管理账号、邀请和兑换记录
- 支持在端内动态添加、移除管理员
- 完善 Docker 部署配置与 .gitignore 规则
2026-03-04 20:08:34 +08:00

18 lines
460 B
Plaintext
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.
# PostgreSQL 连接串
DATABASE_URL=postgres://postgres:postgres@localhost:5432/teamhelper?sslmode=disable
# Telegram Bot Token从 @BotFather 获取)
TELEGRAM_BOT_TOKEN=your-bot-token-here
# 管理员 Telegram 用户 ID逗号分隔
TELEGRAM_ADMIN_IDS=123456789
# 可选:代理地址(支持 http/socks5
# PROXY_URL=socks5://127.0.0.1:1080
# Token 定时检测间隔(分钟)
TOKEN_CHECK_INTERVAL=30
# Team 容量上限
TEAM_CAPACITY=5