How to control the wechaty status by myself?
Created by: sunshinearea
After I deployed the service to the server, I started the WeChaty login program. I found that if the connection of WeChaty was dropped during the operation, the login operation would be automatically performed. Meanwhile, I also wanted to control the login, logout or stop operation of the service during the operation, so I called the start(), logout() and stop() functions in the API.
Bot Puppet:padplus(0.6.1)
- When WeChaty is in the login state, I call stop (), which shows that WeChaty is logged out, but after a while, WeChaty will automatically log in and succeed.
- When I call logout(), WeChat will logout, but after a while, the program will automatically call the qr code scanning method, prompting me to scan and log in. At this time, if I debug this service in another computer on Mac OS, the service will keep reporting errors Is there anything wrong with my operation? How do you automatically control login, logout, or stop?