Files
hermes_weatherbot/start_bot_v3.sh
T
John Doe f19655cb08 Add Telegram notifications for trade signals and scan summaries
- Add requests + logging imports
- Add TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID to config
- Add send_telegram(), tg_signal(), tg_scan_summary() functions
- Configure SOCKS5h proxy (socks5h://127.0.0.1:6922) for Telegram API
- Send tg_signal() on order filled/failed in scan_and_trade()
- Send tg_scan_summary() after each scan cycle
- Update config.json with bot token and chat ID
2026-04-18 16:53:02 +08:00

18 lines
401 B
Bash
Executable File

#!/bin/bash
# Start bot_v3 in background
cd ~/weatherbot
# Check if already running
if pgrep -f "bot_v3.py run" > /dev/null 2>&1; then
echo "bot_v3 is already running!"
pgrep -f "bot_v3.py run" | xargs ps -p
exit 1
fi
nohup ~/weatherbot/venv/bin/python bot_v3.py run > ~/weatherbot/bot_v3.log 2>&1 &
PID=$!
echo "bot_v3 started with PID: $PID"
echo "Log file: ~/weatherbot/bot_v3.log"