JoseHenriqueSiqueira / Whatsapp_Instagram_Messanger_ChatGPT_OpenAI

This repository showcases a ChatBot integrated with WhatsApp, using OpenAI API (such as ChatGPT). With it, you can interact with a highly trained language model to answer your questions and perform specific tasks quickly and efficiently. Don't miss the opportunity to experience cutting-edge AI technology directly on your WhatsApp.
MIT License
132 stars 41 forks source link

Error #1

Closed MenTNT closed 1 year ago

MenTNT commented 1 year ago

Sincronizando Mensagens... Mensagens Sincronizadas Traceback (most recent call last): File "WhatsappBot.py", line 62, in WhatsappBot.run() File "WhatsappBot.py", line 38, in run last_parent = divs[-1] # Obtendo o div mais recente IndexError: list index out of range

JoseHenriqueSiqueira commented 1 year ago

That's a problem I forgot to solve. I will update the repository today. Basically this error happens when the user has no message.

JoseHenriqueSiqueira commented 1 year ago

I added a check for this error not to happen. Basically now it will be analyzing if the user sent any messages. If he doesn't have it, the script will be running waiting for a message.