πSelf Host
β‘ Build your bot manually
γ£ Install required packages
sudo apt update && sudo apt upgrade -y \
&& sudo apt install --no-install-recommends -y ca-certificates curl ffmpeg fonts-noto-color-emoji gcc git gnupg libmagickwand-dev libpq-dev mediainfo nano neofetch pv python3 python3-dev python3-lxml python3-pip python3-psycopg2 screen tree unzip virtualenv wget zlib1g libyaml-dev \
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && NODE_MAJOR=18 && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list && \
sudo apt-get update && sudo apt-get install nodejs -y
γ£ Clone the repo & make config
git clone https://github.com/TgCatUB/catuserbot && cd catuserbot && mv exampleconfig.py config.py
γ£ Setup Chromium & its driver
γ£ Edit the config.py with your config values
Modify the config.py with any text editor, like
nano config.py
Check : Config Values
γ£ Create a Virtual environment & install requirements
screen -S catuserbot
virtualenv venv && source venv/bin/activate && pip3 install -r requirements.txt
γ£ All setup completed, its time to run the bot.
Run:
python3 -m userbot
Close Screen: Press CTRL+A and after that CTRL+D
Check:
screen -ls
Reattach Screen:
screen -r <some_id>.catuserbot
β‘ Video Tutorial
Last updated
Was this helpful?