chore: Organize workspace structure - move docs, workflows, scripts to subdirectories
Organization: - Created docs/ with setup/, guides/, history/ subdirectories - Created workflows/ with trading/, analytics/, telegram/, archive/ subdirectories - Created scripts/ with docker/, setup/, testing/ subdirectories - Created tests/ for TypeScript test files - Created archive/ for unused reference files Moved files: - 17 documentation files → docs/ - 16 workflow JSON files → workflows/ - 10 shell scripts → scripts/ - 4 test files → tests/ - 5 unused files → archive/ Updated: - README.md with new file structure and documentation paths Deleted: - data/ (empty directory) - screenshots/ (empty directory) Critical files remain in root: - telegram_command_bot.py (active bot - used by Dockerfile) - watch-restart.sh (systemd service dependency) - All Dockerfiles and docker-compose files - All environment files Validation: Containers running (trading-bot-v4, telegram-trade-bot, postgres) API responding (positions endpoint tested) Telegram bot functional (/status command tested) All critical files present in root No code changes - purely organizational. System continues running without interruption. Recovery: git revert HEAD or git reset --hard cleanup-before
This commit is contained in:
24
scripts/setup/GET_BOT_TOKEN.sh
Executable file
24
scripts/setup/GET_BOT_TOKEN.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
# One-time setup to get your Telegram Bot Token
|
||||
# Run this and follow the instructions
|
||||
|
||||
echo "🤖 Telegram Bot Setup Instructions"
|
||||
echo "===================================="
|
||||
echo ""
|
||||
echo "1. Open Telegram on your phone"
|
||||
echo "2. Search for '@BotFather'"
|
||||
echo "3. Start a chat with BotFather"
|
||||
echo "4. Send this message: /newbot"
|
||||
echo "5. BotFather will ask for a name - choose anything like 'My Trading Bot'"
|
||||
echo "6. BotFather will ask for a username - must end in 'bot', like 'mytrading_bot'"
|
||||
echo "7. BotFather will give you a TOKEN that looks like:"
|
||||
echo " 123456789:ABCdefGHIjklMNOpqrsTUVwxyz"
|
||||
echo ""
|
||||
echo "8. Copy that token and run:"
|
||||
echo " nano .env.telegram-bot"
|
||||
echo ""
|
||||
echo "9. Replace 'your_bot_token_here' with your actual token"
|
||||
echo ""
|
||||
echo "10. Save (Ctrl+O, Enter, Ctrl+X)"
|
||||
echo ""
|
||||
echo "Then run: ./setup_telegram_bot.sh"
|
||||
Reference in New Issue
Block a user