A simple WhatsApp User bot.
Scan QR Code:
Click SCAN and scan the QR code through the "WhatsApp Linked Devices" option in your WhatsApp app.
You will get a session ID in WhatsApp; copy the ID only.
Create Accounts:
If you don't have an account on Heroku, create an account now.
If you don't have a GitHub account, sign up now.
Fork Repository:
FORK this repository.
Deploy:
Now DEPLOY.
Create an Account:
Create an account on Koyeb. Sign up now.
Get Required Information:
Get the DATABASE_URL. You'll need this while deploying.
Get the SESSION_ID. Open Linked Devices in WhatsApp and SCAN now.
Get the Koyeb API key. Let's Go.
Deploy:
Enter Environment Variables. Read More.
Enter a name and click "Create Service."
Run the following command:
bash <(curl -fsSL http://bit.ly/43JqREw)
Install Git, ffmpeg, and curl:
sudo apt -y update && sudo apt -y upgrade sudo apt -y install git ffmpeg curl
Install Node.js:
curl -fsSL https://deb.nodesource.com/setup_20.x -o nodesource_setup.sh sudo -E bash nodesource_setup.sh sudo apt-get install -y nodejs
Install Yarn:
sudo npm install -g yarn
Install pm2:
sudo yarn global add pm2
Clone Repository and Install Packages:
git clone https://github.com/lyfe00011/levanter botNamecd botName yarn install
Enter Environment Variables:
echo "SESSION_ID = Session_Id_you_Got_After_Scan_Dont_Add_This_Line_If_You_Can_Scan_From_Terminal_ItselfPREFIX = .STICKER_PACKNAME = LyFEALWAYS_ONLINE = falseRMBG_KEY = nullLANGUAG = enWARN_LIMIT = 3FORCE_LOGOUT = falseBRAINSHOP = 159501,6pq8dPiYt7PdqHz3MAX_UPLOAD = 200REJECT_CALL = falseSUDO = 989876543210TZ = Asia/KolkataVPS = trueAUTO_STATUS_VIEW = trueSEND_READ = trueAJOIN = trueDISABLE_START_MESSAGE = falsePERSONAL_MESSAGE = null" > config.env
Read More
Edit config.env
Using Nano (if needed):
To save, press Ctrl + O
, then press Enter
, and to exit, press Ctrl + X
.
Start and Stop the Bot:
To start the bot:
pm2 start . --name botName --attach --time
To stop the bot:
pm2 stop botName
Fork the repository.
Edit config.env
.
Click run.
Create an Account:
Create an account on render. Sign up now.
Get Required Information:
Get the DATABASE_URL. You'll need this while deploying.
Get the SESSION_ID. Open Linked Devices in WhatsApp and SCAN now.
Get the render API key. Let's Go.
Deploy:
Yusuf Usta for WhatsAsena
@adiwajshing for Baileys