#!/bin/sh # startup.sh - Script to run migrations and start the bot echo "🚀 Starting Telegram Tinder Bot..." # Wait for database to be ready echo "⏳ Waiting for database to be ready..." sleep 5 # Run database migrations echo "🔄 Running database migrations..." node dist/database/migrateOnStartup.js # Start the bot echo "✅ Starting the bot..." node dist/bot.js