/wbot-1

A WhatsApp Bot built with Baileys

Primary LanguageJavaScriptMIT LicenseMIT

PFP

Kaguya PublicBot - MD

Use at your own risk!

JavaScript NodeJS discord.js

Build with Baileys and discord.js ( as a command handler )
Legacy branch
Untuk instalasi bahasa Indonesia lihat disini



Content

Highlights

  • Support Multi-Device Conneciton
  • Features rich
  • Easy to maintenance

TODO

For a to do list, see here #1

Instalation

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).
OpenWeather API get from openweathermap.org.

Require

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

Ffmpeg Instalation

  • For Windows User, you can see this website, WikiHow.
  • 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. on PowerShell
setx /m PATH "C:\libwebp\bin;%PATH%"

if libWebP properly isntalled. Check it with this command in Command Prompt

webpmux -version
  • 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 --branch "multi-device"

# change dir
cd wbot

# install npm dependencies
npm install
# in case @adiwajshing/baileys not compiled automatic
cd ./node_modules/@adiwajshing/baileys
npm install --global typescript # run as root/administrator
npm run build:tsc

Start Bot

Start and Scan QR

  1. MD Connection
npm run start
  1. Legacy Connection
npm run legacy