How to keep value of variable when the bot crash
Created at 11 Sep 2023, 03:18
BA
How to keep value of variable when the bot crash
11 Sep 2023, 03:18
Many time, cbot disconnect to the Internet or crash (no reson). How can I keep the value of variable in the cbot after cbot restart?
firemyst
11 Sep 2023, 18:21
When an exception happens, write out the values of any variables you want to a text file; then next time you start your bot, read the values in from the text file if it exists.
the text file can be saved as JSON data, CSV, or any other formats that you want to work with.
@firemyst