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
239 stars 67 forks source link

enableDCPrefix - setting is dropped on reconnect #88

Closed KungFuCookie closed 1 year ago

KungFuCookie commented 1 year ago

I notice I have to keep setting this, almost once an hour. Is there a small improvement here?

FKLC commented 1 year ago

Interesting, settings are read at the beginning of the bot and reconnect doesn't affect settings. I'll keep this bug open, but I'm not sure if I'll be able to fix in in a short time.

spookycookie27 commented 1 year ago

Maybe I'm being misleading. I dont know if it losing state on reconnect, but certainly when you restart I think. I notice that state.js starts with an empty Settings { } , can we persist it somehow?

I also noticed it was losing the whitelisted channels, as well as the EnableDiscordPrefix: true

FKLC commented 1 year ago

This should be fixed now. Please see if it works.

spookycookie27 commented 1 year ago

hey dude, can you create a new release/build for 0.7.2 so I can test it?

FKLC commented 1 year ago

Oh yes, I'm sorry. totally forgot it as I was in a rush to go somewhere. sorry again. will release it in a few minutes.

spookycookie27 commented 1 year ago

Installed, seems good, settings resumed as I left them, after restart. incidently, Im running this bot 24/7 on a VM, with no issues. The SIM cell number is a throwaway sim so any blacklisting is not a problem! I picked a data center in the same country as the phone plan (UK).

Thanks for your efforts.