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
[ UBUNTU INSTALL ]
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
-libcdevdevcwget curl git ffmpeg imagemagick build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev dbus-x11 ffmpeg2theora ffmpegfs ffmpegthumbnailer ffmpegthumbnailer-dbg-codedev ffmpavegthumbs -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-devdmagickgpostpromagick-image graphics 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 environment variables) - The method :
Search in windows "sysdm.cpl"
Click advanced then environment variables
Click Path under user variables or system variables it's up to you
Then click edit, then new
Navigate to the ffmpeg file, for example:
C:\ffmpeg\bin
, make sure it's in the bin folder yaa- Download And Install ImageMagick
Click Here
git clone https://github.com/rthelolchex/exbot-project
cd exbot-project
npm install
npm update
nodes .
Activate self mode (you can only reply to your own number that you link to WhatsApp Web)
If the chat is not from the bot's private chat, the bot will ignore
If the chat is not from the group, the bot will ignore
If the chat is not from status, the bot will ignore
prefixes
separated by individual characters (maximum 1 word) Set prefix
Used for heroku or scan qr via website, for example:
https://exbot-project.herokuapp.com/qr
, why did you enter, sir, I didn't make it just an example wkwkwk
Use external db instead of local db,
example server https://json-server.nurutomo.repl.co/
code: https://repl.it/@Nurutomo/json-server
nodes . --db 'https://json-server.nurutomo.repl.co/'
Server must have specifications as below
GET /
Accept: application/json
POST /
Content-Type: application/json
{
data: {}
}
If small qr / unicode not support
Activate restricted plugins (which can cause your WhatsApp number to be blocked if used too often)
- Group Administration
add, kick
Enable picture mode in terminal/console
All incoming messages will be read automatically
No bots, just listen and read messages or save the database
No messages enter the terminal, unless an error occurs, but if you use it as usual it's normal
It's the same as self mode, but if you use 2 numbers, do you use this, or maintenance mode?
If you don't want to change the bio yourself or want to use it personally, use this
Development Testing Mode
conn.logger.level = 'trace'
conn.logger.level = 'debug'
Nurutomo | rthelolchex |
Author / Creator | Recode/Remake |