You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Durning my development process of this project, I have to restart the programme if the codes are changed. Is there any way to implement features such as hot load?
It is found that there is a dev.ts in package.json. Would you please show the contents of it?
Or, is there any way to save sessions so that it will not require QR code scanning while restarting?
The text was updated successfully, but these errors were encountered:
If you could make it work, I'd like to invite you to write an example/hot-reload-bot.ts for Wechaty, because that's also what I want, and will help others as well.
How to save sessions so that it will not require scan QR Code each time
Wechaty already support that: use profile to define your bot profile name in Wechaty.instance().
You can have a look inside example directory, almost all bots support that already. There's also a known bug which will cause the session reload fail: sometimes you will be prompted to scan the QR Code again even you specified profile.
Please let me know if you have any other questions, hope you can make hot reloading work soon!
Dear maintainers,
Durning my development process of this project, I have to restart the programme if the codes are changed. Is there any way to implement features such as
hot load
?It is found that there is a
dev.ts
inpackage.json
. Would you please show the contents of it?Or, is there any way to save
sessions
so that it will not require QR code scanning while restarting?The text was updated successfully, but these errors were encountered: