FKLC / WhatsAppToDiscord

WhatsAppToDiscord is a Discord bot that uses WhatsApp Web as a bridge between Discord and WhatsApp.
https://fklc.github.io/WhatsAppToDiscord/
MIT License
238 stars 67 forks source link

After a days running the bot lost connection, how to regenerate a qrcode? #164

Closed lokize closed 8 months ago

lokize commented 8 months ago

First, thanks for WhatsAppToDiscord its a amazing project.

After a days running the bot lost connection, how to generate a new qrcode without losing all chats and data?

image

FKLC commented 8 months ago

I don't know what is causing this issue, but as a quick solution you can delete baileys folder inside the storage folder. That should force the bot to regenerate a qr code. Close the bot, delete the folder, rerun the bot. Should be fine.

lokize commented 7 months ago

Thanks, the solution worked.

How to see a log of my problem to prevent it from happening again?

FKLC commented 7 months ago

You should be able to read logs from logs.txt, but I'm not sure if there will be anything useful. This seems like a logic issue, rather than an exception, and unfortunately I can't think of a way to reproduce it.