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
264 stars 81 forks source link

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

Closed lokize closed 1 year ago

lokize commented 1 year 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 1 year 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 1 year ago

Thanks, the solution worked.

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

FKLC commented 1 year 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.