Skip to content

JuanPardos/whatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

  • Node.js > 18
  • WhatsApp account
  • OpenAI API key (if using OpenAI)

How to run

  • Set your environment variables (.env) and configs
npm install .
npm run start

TODO

  • Refactor.
  • Settings persistence.
  • Reply with local models.
  • QOL like list chats, contacts, media handling etc.

Tips and info

  • Use message.getChat() to retrieve groupIDs.
  • Can be used on no-gui systems. Uncomment no-gui settings, launch the program once and scan the QR code in console mode (ssh works).
  • Local models must be OpenAI compatible. I suggest using LM Studio.
  • Be careful with /media might not work. Unix/Windows working directory...
  • For more info about WhatsApp Web JS, check the library repository.

About

Simple whatsapp bot with AI integration

Topics

Resources

Stars

Watchers

Forks

Contributors