this is a simple bot using whatsapp-web.js library and Gemini API to analyze stock market and recommend the group chat
-
clone the repo
-
add
.envfile with yourGEMINI_API_KEYlisted there -
add a
ids.jsonfile with the following structure:{ "investingGroup": `your group id` }
to find the group id, look in the find your group id section
- edit
geminiPrompts.jsonandgeminiTweak.jsonto fit your needs - install all dependecies using
npm install - run
node startto run the program for the first time - as a first time run, after a few seconds, a QR code should appear in the terminal
- in your designated whatsapp, go to
on your whatsapp and choose Linked devices → Link a device and scan the QR code
- you should see a message Client is ready!
- the program should work! test it using the keyword
!חיפושfollowed by a stock symbol
for this you will have to do some digging
- uncomment the
console.loginside themessage_createlistener - send a message in the chat make sure no other messages are being sent at the same time
- copy the id printed in the terminal