Dear Mika,
On 3/12/21 10:28 AM, Mika Silander wrote:
A technicality: what is the best way to intercept a bot restart or shutdown (stopping the bot)? I see the Bot class has a stop method, so I assume overriding this method in our own bots would do the trick, correct? In practise, we'd have the usual init and process methods of the bots extended with a stop method that performs its operations and finally calls the super classes' stop(?)
I'm looking for ways to write a bot's state information to disk before a restart/stopping.
Only in one particular bot or for all bots?
kind regards