Simple WhatsApp Bot, recode from script wabot-aq by @Nurutomo
apt update && apt upgrade
apt install git -y
apt install nodejs -y
apt install ffmpeg -y
apt install imagemagick -y
git clone https://github.com/rthelolchex/exbot-project
cd exbot-project
npm install
npm update
[ INSTALLING UBUNTU ]
apt update && apt full-upgrade
apt install wget curl git proot-distro
proot-distro install ubuntu
echo "proot-distro login ubuntu" > $PREFIX/bin/ubuntu
ubuntu
[ INSTALLING REQUIRED PACKAGES ]
ubuntu
apt update && apt full-upgrade
apt install wget curl git ffmpeg imagemagick build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev dbus-x11 ffmpeg2theora ffmpegfs ffmpegthumbnailer ffmpegthumbnailer-dbg ffmpegthumbs libavcodec-dev libavcodec-extra libavcodec-extra58 libavdevice-dev libavdevice58 libavfilter-dev libavfilter-extra libavfilter-extra7 libavformat-dev libavformat58 libavifile-0.7-bin libavifile-0.7-common libavifile-0.7c2 libavresample-dev libavresample4 libavutil-dev libavutil56 libpostproc-dev libpostproc55 graphicsmagick graphicsmagick-dbg graphicsmagick-imagemagick-compat graphicsmagick-libmagick-dev-compat groff imagemagick-6.q16hdri imagemagick-common libchart-gnuplot-perl libgraphics-magick-perl libgraphicsmagick++-q16-12 libgraphicsmagick++1-dev
[ INSTALLING NODEJS & exbot-project ]
ubuntu
curl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash -
apt install -y nodejs gcc g++ make
git clone https://github.com/rthelolchex/exbot-project
cd exbot-project
npm install
npm update
- Download And Install Git
Click Here
- Download And Install NodeJS
Click Here
- Download And Install FFmpeg
Click Here
(Don't Forget Add FFmpeg to PATH enviroment variables) - Caranya :
Search di windows "sysdm.cpl"
Klik advanced lalu environment variables
Klik Path dibagian user variables atau system variables terserah
Lalu klik edit, terus new
Arahkan ke file ffmpegnya, contoh :
C:\ffmpeg\bin
, pastikan di folder bin yaa- Download And Install ImageMagick
Click Here
git clone https://github.com/rthelolchex/exbot-project
cd exbot-project
npm install
npm update
node .
Aktifkan mode self (hanya bisa reply dinomor sendiri yang anda tautkan ke WhatsApp Web)
Jika chat bukan dari chat pribadi bot, bot akan mengabaikan
Jika chat bukan dari grup, bot akan mengabaikan
Jika chat bukan dari status, bot akan mengabaikan
prefixes
dipisahkan oleh karakter masing-masing (maksimal 1 kata) Atur prefix
Digunakan untuk heroku atau scan qr melalui website, contoh :
https://exbot-project.herokuapp.com/qr
, Ngapain masuk pak, w ga bikin itu hanya contoh wkwkwk
Gunakan db external alih-alih db lokal,
contoh server https://json-server.nurutomo.repl.co/
kode: https://repl.it/@Nurutomo/json-server
node . --db 'https://json-server.nurutomo.repl.co/'
Server harus memiliki spesifikasi seperti di bawah
GET /
Accept: application/json
POST /
Content-Type: application/json
{
data: {}
}
Jika qr kecil / unicode tidak mendukung
Aktifkan plugin terbatas (yang dapat menyebabkan nomor WhatsApp anda terblokir jika digunakan terlalu sering)
- Group Administration
add, kick
Aktifkan mode gambar di terminal / konsol
Semua pesan masuk akan dibaca secara otomatis
Gaada bot, cuman nyimak doang dan baca pesan ataupun simpan database
Tidak ada pesan masuk ke terminal, kecuali terjadinya error, tapi kalau dipake seperti biasa normal
Sama aja kayak mode self, tapi kalo anda pake 2 nomor ya pake ini wkwk, atau maintenance mode?
Kalo gamau bionya keubah sendiri atau mau dipake pribadi, pake ni
Development Testing Mode
conn.logger.level = 'trace'
conn.logger.level = 'debug'
![]() |
![]() |
---|---|
Nurutomo | rthelolchex |
Penulis / Pencipta | Recode / Remake |