SkillAgentSearch skills...

Wbot

A WhatsApp Bot built with Baileys

Install / Use

/learn @FaizBastomi/Wbot
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

[!WARNING]
This repository is no longer maintained and will be archived.

<div align="center"> <img src="https://telegra.ph/file/fbe3160f0ad0e14abeeeb.jpg" width="150" height="150" border="0" alt="PFP">

Kaguya PublicBot - MD

Use at your own risk!

JavaScript NodeJS

Legacy branch <br /> Untuk instalasi bahasa Indonesia lihat disini<br />

</div><br /> <br />

Content

Highlights

  • [x] Support Multi-Device Conneciton
  • [x] Features rich
  • [x] Easy to maintenance

TODO

For a to do list, see here #1

Instalation

Config

Rename config.json.example to config.json or create new file called config.json.<br /> Fill in everything needed in the config.json file (follow config.json.example).<br />

{
    "botName": "SMH BOT",			// Your Bot Name
    "owner": [					// Your phone number or friend
        "Your_Phonenumber@s.whatsapp.net",
        "another_one@s.whatsapp.net"
    ],
    "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
    }
}
  • Phone Number<br> Use international phone number format and always add @s.whatsapp.net (e.g. 6282122232224@s.whatsapp.net)

OpenWeather API get from openweathermap.org.

Plugin/Command config

  • config set
{
	"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 }) { }
}
  • example
{
	"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 }) { }
}

Require

  1. nodejs 16x/17x
  2. ffmpeg
  3. libwebp

Ffmpeg Instalation

  • For Windows User, you can see this website, WikiHow.<br />
  • For Linux User, you can use your own package manager, below are for example
# apt
apt install ffmpeg -y

# pacman
pacman -S ffmpeg

libWebP Instalation

  • For Windows User,
  1. Download libWebP for Windows. download.
  2. Extract to C:\
  3. Rename extracted folder to libwebp
  4. See below
<details> <summary>Image Tutorial</summary> <ul> <li>Press <code>Windows Key + S</code> and find <code>Edit the system environment and variabels</code></li> <img src="./images/image_1.png"> <li>Select <code>Environment Variabels...</code></li> <img src="./images/image_2.png"> <li>On <b>User variabels</b>, select <code>Path</code> and click <code>Edit...</code></li> <img src="./images/image_3.png"> <li>Then click <code>New</code></li> <img src="./images/image_4.png"> <li>input this, <code>C:\libwebp\bin</code></li> <img src="./images/image_5.png"> </ul> </details>
  • For Linux User, you can use your own package manager, below for example
# apt
apt install libwebp-dev -y

# pacman
pacman -S libwebp

Cloning this repo

# clone begin
git clone https://github.com/FaizBastomi/wbot.git

# change dir
cd wbot

# install npm dependencies
npm install

Start Bot

Start and Scan QR<br />

  1. MD Connection
npm run start
# or
node ./lib/connect.js

Contributing

Pull requests are welcome. Your contribution is helping me a lot :^)

Contributors

<a href="https://github.com/FaizBastomi/wbot/graphs/contributors"> <img src="https://contrib.rocks/image?repo=FaizBastomi/wbot" /> </a>

Made with contrib.rocks.

View on GitHub
GitHub Stars72
CategoryDevelopment
Updated8mo ago
Forks66

Languages

JavaScript

Security Score

92/100

Audited on Jul 30, 2025

No findings