A WhatsApp Bot built with Baileys
[!WARNING]
This repository is no longer maintained and will be archived.
For a to do list, see here #1
Rename config.json.example
to config.json
or create new file called config.json
.
Fill in everything needed in the config.json
file (follow config.json.example
).
{
"botName": "SMH BOT", // Your Bot Name
"owner": [ // Your phone number or friend
"[email protected]",
"[email protected]"
],
"openWeather": "OpenWeather_APIkey", // OpenWeather API
"igCookie": "Instagram_Cookie", // Instagram Cookie
"session": "session", // Session folder
"user_db": "users-db.json", // User DB filename
"chat_store": "baileys-store.json", // Chat Store
"timezone": "Asia/Jakarta", // Your timezone (for cron and moment-timezone)
"footer": "Kaguya PublicBot • FaizBastomi", // Footer for some message
"tier": { // Premium Tier
"drakath": 200,
"nulgath": 500,
"artix": 999
}
}
[email protected]
)OpenWeather API get from openweathermap.org.
{
"name": string,
"desc": string,
"use": string,
"alias": string[],
"cooldown": number,
"limit": boolean,
"consume": number,
"premium": boolean,
"premiumType": string[],
"owner": boolean,
async exec({ msg, sock, args, arg, isOwner }) { }
}
{
"name": "igdl",
"desc": "Instagram Downloader",
"use": "<link>",
"alias": ["instagramdl"],
"cooldown": 3,
"limit": true,
"consume": 2,
"premium": true,
"premiumType": ["drakath", "nulgath", "artix"],
"owner": false,
async exec({ msg, sock, args, arg, isOwner }) { }
}
# apt
apt install ffmpeg -y
# pacman
pacman -S ffmpeg
libwebp
Windows Key + S
and find Edit the system environment and variabels
Environment Variabels...
Path
and click Edit...
New
C:\libwebp\bin
# apt
apt install libwebp-dev -y
# pacman
pacman -S libwebp
# clone begin
git clone https://github.com/FaizBastomi/wbot.git
# change dir
cd wbot
# install npm dependencies
npm install
Start and Scan QR
npm run start
# or
node ./lib/connect.js
Pull requests are welcome. Your contribution is helping me a lot :^)
Made with contrib.rocks.