BochilGaming / games-wabot

Games-wabot is RPG Bot Whatsapp. Now support Multi-device!!, check branch multi-device
http://bochil.ddns.net/
GNU General Public License v3.0
208 stars 507 forks source link

Multi device #235

Closed ilhamn2405 closed 2 years ago

ilhamn2405 commented 2 years ago

Screenshot_Termux_20220226-001630 Mengapa saya sqan menggunakan multi perangkat seperti ini bang?

Oktaviola23490 commented 2 years ago

Gk tau juga bang :v

Pada tanggal Sab, 26 Feb 2022 00.21, ilhamn2405 @.***> menulis:

[image: Screenshot_Termux_20220226-001630] https://user-images.githubusercontent.com/43334234/155759029-916d03d2-1cf0-4d2b-9d7f-dce2b2540584.png Mengapa saya sqan menggunakan multi perangkat seperti ini bang?

— Reply to this email directly, view it on GitHub https://github.com/BochilGaming/games-wabot/issues/235, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXGNSN4TQYPGFRWOWOBIVMTU463CVANCNFSM5PK2QZNA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

DineshValor commented 2 years ago

METHOD 1 : Ubuntu-Termux

  1. Install Ubuntu in termux
  2. Install all necessary modules for Ubuntu
  3. Open udroid (Ubuntu) in termux
  4. Clone repo in Ubuntu
  5. Install necessary buildpack for bot like ffmg, etc
  6. npm install
  7. npm update
  8. npm start
  9. Now you ready to scan code.

Silakan gunakan penerjemah jika Anda tidak dapat memahami bahasa saya.

Note: Above all process take around more than 2gb internet and space in your device. I'm not responsible for any kind of loss/error, do as per your own.

How to install Ubuntu in Android/Termux? Here the link: https://github.com/RandomCoderOrg/ubuntu-on-android

BochilGaming commented 2 years ago

Screenshot_Termux_20220226-001630 Mengapa saya sqan menggunakan multi perangkat seperti ini bang?

Kalau mau pakke multi-device pakek yang branch MD

ilhamn2405 commented 2 years ago

Screenshot_Termux_20220226-104926 Udah ganti source ke branch md pas bash install.sh malah gini

BochilGaming commented 2 years ago

npm i && node .

ilhamn2405 commented 2 years ago

![Uploading Screenshot_Termux_20220226-125005.png…]() QR gamau muncul

BochilGaming commented 2 years ago

npm i qrcode-terminal

DineshValor commented 2 years ago

npm i qrcode-terminal

Bro this Issue is totally different, i suffered from same issue long days back. npm install cause not to download dependencies properly only in termux terminal. whereas, yarn skip error and download rest of dependencies, but using yarn make trouble trouble with @adiwajshing module. So @adiwajshing folder must be copied from somewhere in to `node_modules' folder.

DineshValor commented 2 years ago

METHOD 2 : Mod-Termux

Screenshot_Termux_20220226-104926 Udah ganti source ke branch md pas bash install.sh malah gini

Its a termux issue, I'm not sure but you can try below termux-mod (today received recommendation from a friend) https://www.mediafire.com/file/f01sbphqjsd37b3/TermuxMod.apk/file

Note: use pkg install nodejs-lts not pkg install nodejs, and do not try to install Ubuntu in mod-termux because I'm not sure about Ubuntu in mod-termux.

ilhamn2405 commented 2 years ago

Screenshot_Termux_2220226-104926Udah ganti source ke branch md pas bash install.sh malah gini

Ini masalah termux, saya tidak yakin tetapi Anda dapat mencoba termux-mod di bawah ini (hari ini menerima rekomendasi dari seorang teman) https://www.mediafire.com/file/f01sbphqjsd37b3/TermuxMod.apk/file

Dan juga menggunakan pkg install nodejs-ltstidak pkg install nodejs.

Tidak bisa berjalan

ilhamn2405 commented 2 years ago

Screenshot_Termux_20220226-180838 can't update or install

DineshValor commented 2 years ago

Screenshot_Termux_20220226-180838 Why?

Is that mod version? Maybe due to that!

DineshValor commented 2 years ago

Brother you really want to run bot on termux? 🤐 Without spending extra efforts of internet! Why you didn't try out Ubuntu method in termux?

Try this method:- https://github.com/BochilGaming/games-wabot/issues/235#issuecomment-1051248573

ilhamn2405 commented 2 years ago

Saudara Anda benar-benar ingin menjalankan bot di termux?🤐.Tanpa menghabiskan upaya ekstra internet! Mengapa Anda tidak mencoba metode Ubuntu di termux?

Coba metode ini:- #235 (komentar)

root@localhost:~# ubuntu -bash: /data/data/com.termux/files/usr/bin/ubuntu: Permission denied root@localhost:~#

how to give permission

ilhamn2405 commented 2 years ago

ubuntu bash: /data/data/com.termux/files/usr/bin/ubuntu: Permission denied

Di tolak

DineshValor commented 2 years ago

ubuntu bash: /data/data/com.termux/files/usr/bin/ubuntu: Permission denied

Di tolak

What you trying to do with ubuntu bash command line? Please always share a screenshot, its easier to understand where did error comes out!

ilhamn2405 commented 2 years ago

![Uploading Screenshot_Termux_20220227-135354.png…]()

DineshValor commented 2 years ago

@ilhamn2405 screenshot didn't appeared in https://github.com/BochilGaming/games-wabot/issues/235#issuecomment-1053260684 comment! Did you tag some other screenshot or what? Screenshot_20220227-123317

DineshValor commented 2 years ago

Screenshot_Termux_20220226-001630 Mengapa saya sqan menggunakan multi perangkat seperti ini bang?

METHOD 3 : node_modules

  1. Download from below link. https://drive.google.com/file/d/1Ydcjt3PnGiOr9vL66dFC11V0sEywJb32/view?usp=drivesdk

  2. Extract and copy node_modules into games-wabot

  3. Open termux, go to games-wabot folder path. For example ($ cd /sdcard/downloads/games-bot)

  4. Run games-wabot bot. For example ($ node . )

  5. Run successfully. (If any error, share screenshot)

(This method i always use for termux (not Ubuntu-termux).

Note

Install nodejs-lts before try all 3 methods and steps.

DineshValor commented 2 years ago

Screenshot_Termux_20220226-001630 Mengapa saya sqan menggunakan multi perangkat seperti ini bang?

Re-write/replace this dependency code line https://github.com/BochilGaming/games-wabot/blob/dbf7b55f614f7eb104181f04fd6a4dd4318b2e51/package.json#L42 with "@adiwajshing/baileys": "^4.0.1",

Now follow below mentioned steps using original termux apk. $ git clone «your edited repo link» $ cd games-wabot $ yarn $ node .

AS PER MY VIEW THIS ISSUE HAS BEEN RESOLVED

ilhamn2405 commented 2 years ago

Screenshot_Termux_20220302-060924 why is it like this? I immediately tried npm install @adiwajshing/baileys-md but error

DineshValor commented 2 years ago

Screenshot_Termux_20220302-060924 why is it like this? I immediately tried npm install @adiwajshing/baileys-md but error

You using any other old bot script which support old baileys version, that's why its shows error. Try games-wabot again with original termux apk with package.json changes.

DineshValor commented 2 years ago

Screenshot_Termux_20220302-060924 why is it like this? I immediately tried npm install @adiwajshing/baileys-md but error

If you want to run bot badly on termux and neither able to resolve issue nor found any solution then you can may try this repo steps, but I'm not sure these steps can work with other repo or not.

BochilGaming commented 2 years ago

this problem occurs because the script doesn't support multi device but it scans using multi device

ilhamn2405 commented 2 years ago

Screenshot_Termux_20220302-060924mengapa seperti ini? Saya langsung mencoba npm install @adiwajshing/baileys-md tapi error

Jika Anda ingin menjalankan bot dengan buruk di termux dan tidak dapat menyelesaikan masalah atau menemukan solusi apa pun, Anda dapat mencoba repolangkah ini, tetapi saya tidak yakin langkah ini dapat berfungsi dengan repo lain atau tidak.

good, the source code is working fine

DineshValor commented 2 years ago

Screenshot_Termux_20220302-060924mengapa seperti ini? Saya langsung mencoba npm install @adiwajshing/baileys-md tapi error

Jika Anda ingin menjalankan bot dengan buruk di termux dan tidak dapat menyelesaikan masalah atau menemukan solusi apa pun, Anda dapat mencoba repolangkah ini, tetapi saya tidak yakin langkah ini dapat berfungsi dengan repo lain atau tidak.

good, the source code is working fine

I recommend to install nodejs-lts by using given below command in termux $ pkg install nodejs-lts

Nodejs-lts is the stable version of Nodejs, and support all bots script fine.

botstylee commented 2 years ago

Screenshot_Termux_20220302-060924 why is it like this? I immediately tried npm install @adiwajshing/baileys-md but error

Modul Lo gak kebaca bang

botstylee commented 2 years ago

Coba dah npm install @adiwajshing/baileys-md

DineshValor commented 2 years ago

Coba dah npm install @adiwajshing/baileys-md

There is no such repo present at adiwajshing/baileys-md