Skip to content

rabianikwan/WA-chatgpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Whatsapp Bot CHAT-GPT

If you want to create a WhatsApp bot with GPT base, download this project or with CLI :

git clone

If you don’t have node.js: install here, and if you already have install this library :

npm i @adiwajshing/[email protected]
npm i [email protected]
npm i @hapi/boom
npm I openai

Make openAI APIkey.

Edit this line in app.js

line 11 :

const configuration = new Configuration({
  apiKey: "", //fill with your APIkey
});

Line 78 :

const apaMentionBot = pengirimWhatsApp.includes("@"); //Fill with bot phone number

Run your project with

npm run start

It’s done easy, right? Want app to run 24/7? do these steps :

npm install pm2 -g
pm2 start whatsapp.js --name "whatsapp"

Run this to check the physical memory used or delete the background process.

pm2 ps
pm2 delete 0
pm2 logs

New Features :

  • Continuous chat
  • Image Finder: text ‘gambar…’, ex ‘gambar kucing’, it’ll send cat pic
  • Video Downloader: put the Youtube link; it’ll automatically download

Next Features :

  • Audio Recognition
  • Image Editing
  • Tiktok Video Downloader

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published