WhatsApp OpenAI Create with NodeJS Using Library Baileys
Terdapat 2 tipe yaitu menggunakan command dan tanpa menggunakan command (auto chat).
- Jika ingin menggunakan command silahkan ganti kata
true
menjadifalse
di file key.json
Untuk commandnya menggunakan.ai
- Jika tidak ingin menggunakan command (auto chat) silahkan ganti kata
false
menjaditrue
di file key.json
- Jika limit ApiKey OpenAI sudah habis silahkan buat apikey yang barunya Disini
- Ganti ApiKey OpenAI pada file key.json
Install on RDP/Windows โ
Install NodeJS dan Git Bash terlebih dahulu
$ git clone https://github.com/Setiawan007/WaBot-OpenAI
$ cd WaBot-OpenAI
$ npm install
$ node index.js
Install on Termux โ
Silahkan install terlebih dahulu Termux
karena di termux saat install otomatis node_modules
melalui npm install
terjadi error, jadi kita install nodejs versi lts
$ pkg install git nodejs-lts -y
$ git clone https://github.com/Setiawan007/Wabot-OpenAI
$ cd Wa-OpenAI
Run
$ node index.js