-
You need to Install git,ffmpeg,curl,nodejs,yarn with pm2
-
Install git ffmpeg curl
sudo apt -y update && sudo apt -y upgrade sudo apt -y install git ffmpeg curl
-
Install nodejs
sudo apt -y remove nodejs curl -fsSl https://deb.nodesource.com/setup_lts.x | sudo bash - && sudo apt -y install nodejs
-
Install yarn
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt -y update && sudo apt -y install yarn
-
Install pm2
sudo yarn global add pm2
-
Clone Repo and install required packages
git clone https://github.com/SamPandey001/Secktor-Md cd Secktor-Md yarn install --network-concurrency 1
-
Create an env file for ENV.
touch config.env nano config.env
copy paste lines below.
OWNER_NUMBER="911234567890" MONGODB_URI="mongodb+srv://*************" SESSION_ID = "session-id" WORKTYPE = public PACK_INFO = "Sam;Pandey"
ctrl + o and ctrl + x, To save and exit
-
start and stop bot
To start bot
npm start
, To stop botnpm stop
-