Zain-ul-din / whatsapp-ai-bot

This is a WhatsApp AI bot that uses various AI models, including Gemini, GPT, DALL-E, Flux and StabilityAI, to generate responses to user input.
https://wa-ai-seven.vercel.app/
MIT License
185 stars 104 forks source link

Added session persistence #45

Closed MikelCalvo closed 3 months ago

MikelCalvo commented 3 months ago

Added session persistence for the whatsapp-web.js library. I've followed the following guide: https://wwebjs.dev/guide/creating-your-bot/authentication.html

I don't know if the pupeteer dependency is fully needed, I added it because it wasn't working without it, as mentioned in #2164

MikelCalvo commented 3 months ago

Hi @Zain-ul-din, In my experience working with wweb.js, it has a nice community updating the library fast but is common for it to be broken due to design changes or similar.

I didn't know about Baileys but It looks like promising alternative, migrating to that could be a nice step forward in my opinion.

I don't promise anything because I'm a bit busy but If I have some free time I will try to make it work on local an open a PR If i manage to run it.

Zain-ul-din commented 3 months ago

I agree, The only problem with wweb.js is they are using Chrome even though it is headless but still takes lots of resources.

Many people are asking me for a deployment and some are earning money from this bot. Before a few days, a person reached me and he provided me a website link that was earning 100k $ per month by deploying w-bots. I've also planned to do something similar but due to my study, I'm also busy right now. ping me when you'll be free I'm currently working on a website to get customers.