#!/bin/bash cd && cd .. sudo apt-get update sudo apt-get install -y python3-dev sudo apt-get install -y libsqlite3-dev sudo apt install build-essential if ! command -v python3 &> /dev/null; then echo "Python not found. Installing..." sudo apt-get install -y python3 fi if ! command -v git &> /dev/null; then echo "Git not found. Installing..." sudo apt-get install -y git fi if ! command -v pip3 &> /dev/null; then echo "pip3 not found. Installing..." sudo apt-get install -y python3-pip fi if ps aux | grep -v grep | grep "python3 holder.py" &> /dev/null; then echo "Stopping existing holder process..." pkill -f "python3 holder.py" fi if ps aux | grep -v grep | grep "python3 holderbeta.py" &> /dev/null; then echo "Stopping existing holder process..." pkill -f "python3 holderbeta.py" fi if ps aux | grep -v grep | grep "python3 node_status_checker.py" &> /dev/null; then echo "Stopping existing node_status_checker process..." pkill -f "python3 node_status_checker.py" fi if ps aux | grep -v grep | grep "python3 monitoringbeta.py" &> /dev/null; then echo "Stopping existing monitoringbeta process..." pkill -f "python3 monitoringbeta.py" fi if ps aux | grep -v grep | grep "python3 monitoring.py" &> /dev/null; then echo "Stopping existing monitoring process..." pkill -f "python3 monitoring.py" fi if ps aux | grep -v grep | grep "python3 expired.py" &> /dev/null; then echo "Stopping existing expired process..." pkill -f "python3 expired.py" fi if ps aux | grep -v grep | grep "python3 limiteder.py" &> /dev/null; then echo "Stopping existing limiteder process..." pkill -f "python3 limiteder.py" fi if ps aux | grep -v grep | grep "python3 activated.py" &> /dev/null; then echo "Stopping existing Activated process..." pkill -f "python3 activated.py" fi if [ -d "holderbot" ]; then echo "Removing existing holderbeta directory..." rm -rf holderbot fi if [ -d "holderbeta" ]; then echo "Removing existing holderbeta directory..." rm -rf holderbeta fi if [ -d "holder" ]; then echo "Removing existing holder directory..." rm -rf holder fi mkdir holderbot cd holderbot git clone -b main https://github.com/Elecx-ir/holderbot.git . sudo apt install -y python3.10-venv python3 -m venv hold source hold/bin/activate pip install -U pyrogram tgcrypto requests Pillow qrcode[pil] persiantools pytz python-dateutil pysqlite3 cdifflib reportlab sudo apt-get install sqlite3 read -p "Please enter name (nickname) : " name read -p "Please enter telegram chatid : " chatid read -p "Please enter telegram bot token: " token read -p "Please enter panel sudo username : " user read -p "Please enter panel sudo password : " password read -p "Please enter panel domain (like: sub.domian.com:port) : " domain sqlite3 holder.db <