chore: initial commit

This commit is contained in:
你的用户名
2025-11-01 21:58:31 +08:00
commit 0406b5664f
101 changed files with 20458 additions and 0 deletions

21
start_bot_fixed.sh Executable file
View File

@@ -0,0 +1,21 @@
#\!/bin/bash
cd /home/atai/telegram-bot
# 加载.env文件中的环境变量
export $(grep -v "^#" .env | grep -v "^$" | xargs)
# 设置代理
export ALL_PROXY=socks5://127.0.0.1:1080
echo "=== 环境变量检查 ==="
echo "ANTHROPIC_AUTH_TOKEN: ${ANTHROPIC_AUTH_TOKEN:0:30}..."
echo "ANTHROPIC_BASE_URL: $ANTHROPIC_BASE_URL"
echo "BOT_TOKEN: ${BOT_TOKEN:0:30}..."
echo "========================"
# 启动bot
screen -dmS agent_bot bash -c "python3 -u integrated_bot_ai.py 2>&1 | tee bot_agent_sdk.log"
echo "Bot已在screen会话中启动"
echo "使用 screen -r agent_bot 查看日志"