#!/usr/bin/env bash # Safely kill the MEV bot process set -euo pipefail # Find and kill MEV bot processes if pgrep -f "mev-bot|mev-beta" >/dev/null 2>&1; then echo "Killing MEV bot processes..." pkill -f "mev-bot|mev-beta" && echo "✅ MEV bot stopped" || echo "❌ Failed to stop MEV bot" else echo "No MEV bot processes found" exit 1 fi