- start.sh: use dirname instead of hardcoded path - src/zcode.js: remove hardcoded chat_id fallback - src/utils/rtk.js: use 'rtk' from PATH instead of hardcoded binary path - src/telegram-bot.ts: use process.cwd() instead of hardcoded path - TELEGRAM_SETUP.md: replace token/chat_id with placeholders - QUICKSTART.md: sanitize all references - SERVICE_MAP.md: use relative paths instead of absolute
16 lines
319 B
Bash
Executable File
16 lines
319 B
Bash
Executable File
#!/bin/bash
|
|
# Startup script for zCode CLI X
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
# Check if .env exists
|
|
if [ ! -f ".env" ]; then
|
|
echo "❌ .env file not found!"
|
|
echo "Please copy .env.example to .env and configure your credentials."
|
|
exit 1
|
|
fi
|
|
|
|
# Start the bot
|
|
echo "🚀 Starting zCode CLI X..."
|
|
node bin/zcode.js --bot
|