Mirror from https://github.com/BochilGaming/games-wabot/tree/multi-device
GPL-3.0 License
NO BOT
BuildPack | LINK |
---|---|
FFMPEG | here |
IMAGEMAGICK | here |
$ pkg upgrade && pkg update
$ pkg install git -y
$ pkg install nodejs -y
$ pkg install ffmpeg -y
$ pkg install imagemagick -y
$ git clone https://github.com/BochilGaming/games-wabot -b multi-device
$ cd games-wabot
$ npm i
If error try using yarn instead of npm, see here
$ node .
Multi Device Beta
> Click on link device
)$ pkg install yarn -y
$ yarn install
[ 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 & GAMES-WABOT ]
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/BochilGaming/games-wabot -b multi-device
cd games-wabot
npm install
npm update
Click Here
Click Here
Click Here
(Don't Forget Add FFmpeg to PATH enviroment variables)Click Here
git clone https://github.com/BochilGaming/games-wabot -b multi-device
cd games-wabot
npm install
npm update
node .
node . [--options] [<session name>]
--self
Activate self mode (Ignores other)
--pconly
If that chat not from private bot, bot will ignore
--gconly
If that chat not from group, bot will ignore
--swonly
If that chat not from status, bot will ignore
--prefix <prefixes>
prefixes
are seperated by each character--server
Used for heroku or scan through website
--restrict
Enables restricted plugins (which can lead your number to be banned if used too often)
add, kick
--img
Enable image inspector through terminal
--autoread
If enabled, all incoming messages will be marked as read
--autocleartmp
If enabled, *tmp folder contain files will be auto delete
--nyimak
No bot, just print received messages and add users to database
--test
Development Testing Mode
--db
pass mongodb url or cloud url to connect to database, by the default it will connect to database.json
--singleauth
you can convert single file auth to multiple file auth using this argument, it will convert if you have single file auth and folder multi auth is empty (creds.json is not exist)
// Syntax
conn.sendButton(
jid, // jid of the user (send the message to)
text, // text to send
foooter, // footer to send
buffer, // buffer to send (optional), if you want to send button image, location, etc
buttons, // buttons to send, example [['text1', 'id1'], ['text2', 'id2']]
quoted, // quoted message to send (optional)
options // options to send, example { asLocation: true }
)
// example
conn.sendButton(m.chat, 'Hello world!', '@BochilGaming', null, [
['Hello', 'hello'], ['Bye', 'bye']
])
// example button location
conn.sendButton(m.chat, 'Hello world!', '@BochilGaming', 'https://github.com/BochilGaming',
[['Hello', 'hello'], ['Bye', 'bye']],
null, { asLocation: true }
)
Please cek syntax error on your plugins. and maybe your script still using CJS This multi-device script use ESM and CJS (legacy code) not support yet. Learn more about ESM
You can delete folder
sessions
or run commandrm -rf sessions
if your error like this
(node:7016) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "key" argument must be of type string or an instance of Buffer, TypedArray, DataView, or KeyObject. Received undefined
you can use multi-device branch
You can change in
config.js
, on global.owner. make sure you use correct syntax.
global.owner = [
['6281319944687', 'BG', true]
]
First argument on array is number like
6281319944687
, second argument is name likeBG
(if this argument pass, if usingowner
command, this number will send as owner), third argument is developer liketrue
(if this argument pass, if there have plugins error (not syntax error) the error will send to developer)
change option
'recursiveRead'
to'true'
in file main.js inloadPluginFiles
function
Allah SWT,
Orang Tua,
Semua yang selalu mendukung