update
This commit is contained in:
@@ -26,7 +26,6 @@ from config import (
|
|||||||
TELEGRAM_LOW_STOCK_THRESHOLD,
|
TELEGRAM_LOW_STOCK_THRESHOLD,
|
||||||
CONFIG_FILE,
|
CONFIG_FILE,
|
||||||
EMAIL_PROVIDER,
|
EMAIL_PROVIDER,
|
||||||
BROWSER_HEADLESS,
|
|
||||||
ACCOUNTS_PER_TEAM,
|
ACCOUNTS_PER_TEAM,
|
||||||
PROXY_ENABLED,
|
PROXY_ENABLED,
|
||||||
PROXIES,
|
PROXIES,
|
||||||
@@ -176,7 +175,6 @@ class ProvisionerBot:
|
|||||||
BotCommand("run_all", "处理所有 Team"),
|
BotCommand("run_all", "处理所有 Team"),
|
||||||
BotCommand("stop", "停止当前任务"),
|
BotCommand("stop", "停止当前任务"),
|
||||||
BotCommand("logs", "查看最近日志"),
|
BotCommand("logs", "查看最近日志"),
|
||||||
BotCommand("headless", "切换无头模式"),
|
|
||||||
BotCommand("dashboard", "查看 S2A 仪表盘"),
|
BotCommand("dashboard", "查看 S2A 仪表盘"),
|
||||||
BotCommand("stock", "查看账号库存"),
|
BotCommand("stock", "查看账号库存"),
|
||||||
BotCommand("import", "导入账号到 team.json"),
|
BotCommand("import", "导入账号到 team.json"),
|
||||||
@@ -362,9 +360,6 @@ class ProvisionerBot:
|
|||||||
else:
|
else:
|
||||||
proxy_info = "未启用"
|
proxy_info = "未启用"
|
||||||
|
|
||||||
# 无头模式状态
|
|
||||||
headless_status = "✅ 已开启" if BROWSER_HEADLESS else "❌ 未开启"
|
|
||||||
|
|
||||||
# Owner 入库状态
|
# Owner 入库状态
|
||||||
include_owners_status = "✅ 已开启" if INCLUDE_TEAM_OWNERS else "❌ 未开启"
|
include_owners_status = "✅ 已开启" if INCLUDE_TEAM_OWNERS else "❌ 未开启"
|
||||||
|
|
||||||
@@ -379,9 +374,6 @@ class ProvisionerBot:
|
|||||||
f" 地址: {auth_url}",
|
f" 地址: {auth_url}",
|
||||||
f" Owner 入库: {include_owners_status}",
|
f" Owner 入库: {include_owners_status}",
|
||||||
"",
|
"",
|
||||||
"<b>🌐 浏览器</b>",
|
|
||||||
f" 无头模式: {headless_status}",
|
|
||||||
"",
|
|
||||||
"<b>👥 账号设置</b>",
|
"<b>👥 账号设置</b>",
|
||||||
f" 每 Team 账号数: {ACCOUNTS_PER_TEAM}",
|
f" 每 Team 账号数: {ACCOUNTS_PER_TEAM}",
|
||||||
f" team.json 账号: {len(TEAMS)}",
|
f" team.json 账号: {len(TEAMS)}",
|
||||||
@@ -390,8 +382,8 @@ class ProvisionerBot:
|
|||||||
f" 状态: {proxy_info}",
|
f" 状态: {proxy_info}",
|
||||||
"",
|
"",
|
||||||
"<b>💡 提示:</b>",
|
"<b>💡 提示:</b>",
|
||||||
"/headless - 切换无头模式",
|
|
||||||
"/include_owners - 切换 Owner 入库",
|
"/include_owners - 切换 Owner 入库",
|
||||||
|
"/s2a_config - 配置 S2A 参数",
|
||||||
]
|
]
|
||||||
|
|
||||||
await update.message.reply_text("\n".join(lines), parse_mode="HTML")
|
await update.message.reply_text("\n".join(lines), parse_mode="HTML")
|
||||||
@@ -504,7 +496,6 @@ class ProvisionerBot:
|
|||||||
EMAIL_PROVIDER as new_email_provider,
|
EMAIL_PROVIDER as new_email_provider,
|
||||||
AUTH_PROVIDER as new_auth_provider,
|
AUTH_PROVIDER as new_auth_provider,
|
||||||
INCLUDE_TEAM_OWNERS as new_include_owners,
|
INCLUDE_TEAM_OWNERS as new_include_owners,
|
||||||
BROWSER_HEADLESS as new_headless,
|
|
||||||
ACCOUNTS_PER_TEAM as new_accounts_per_team,
|
ACCOUNTS_PER_TEAM as new_accounts_per_team,
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -518,7 +509,6 @@ class ProvisionerBot:
|
|||||||
f" 邮箱服务: {new_email_provider}",
|
f" 邮箱服务: {new_email_provider}",
|
||||||
f" 授权服务: {new_auth_provider}",
|
f" 授权服务: {new_auth_provider}",
|
||||||
f" Owner 入库: {'✅' if new_include_owners else '❌'}",
|
f" Owner 入库: {'✅' if new_include_owners else '❌'}",
|
||||||
f" 无头模式: {'✅' if new_headless else '❌'}",
|
|
||||||
f" 每 Team 账号: {new_accounts_per_team}",
|
f" 每 Team 账号: {new_accounts_per_team}",
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -548,7 +538,7 @@ class ProvisionerBot:
|
|||||||
key_display = S2A_ADMIN_KEY[:4] + "..."
|
key_display = S2A_ADMIN_KEY[:4] + "..."
|
||||||
|
|
||||||
groups_display = ", ".join(S2A_GROUP_NAMES) if S2A_GROUP_NAMES else "默认分组"
|
groups_display = ", ".join(S2A_GROUP_NAMES) if S2A_GROUP_NAMES else "默认分组"
|
||||||
group_ids_display = ", ".join(S2A_GROUP_IDS) if S2A_GROUP_IDS else "无"
|
group_ids_display = ", ".join(str(x) for x in S2A_GROUP_IDS) if S2A_GROUP_IDS else "无"
|
||||||
|
|
||||||
lines = [
|
lines = [
|
||||||
"<b>📊 S2A 服务配置</b>",
|
"<b>📊 S2A 服务配置</b>",
|
||||||
|
|||||||
Reference in New Issue
Block a user