- 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 king.domain
-
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/chhaseeb47/HASI-MD cd HASI-MD yarn install --network-concurrency 1
-
Create an env file for ENV.
touch config.env nano config.env
copy paste lines below.
OWNER_NUMBER="923407472645" MONGODB_URI="url of mongodb" SESSION_ID = "ID-here" THUMB_IMAGE = "https://telegra.ph/file/ea5cfd778d2004c72d965.jpg" port = 5000 email = "[email protected]" global_url = "insta url here" OWNER_NAME = "𝗖𝗛 𝗛𝗔𝗦𝗘𝗘𝗕" AUTO_REACTION = false FAKE_COUNTRY_CODE = 212 READ_MESSAGE = false PREFIX = . WARN_COUNT = 3 DISABLE_PM = false ANTI_BAD_WORD = "fuck" LEVEL_UP_MESSAGE= true WELCOME_MESSAGE = "*Hi,* @user \n*Welcome in* @gname \n*Member count* : @count th" THEME= SECKTOR WORKTYPE = public PACK_INFO = "𝗖𝗛 𝗛𝗔𝗦𝗘𝗘𝗕; HASI-MD" ANTILINK_VALUES = "chat.whatsapp.com"
ctrl + o and ctrl + x, To save and exit
-
start and stop bot
To start bot
npm start
, To stop botnpm stop
-